-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathshare-histograms.html
More file actions
182 lines (171 loc) · 9.21 KB
/
Copy pathshare-histograms.html
File metadata and controls
182 lines (171 loc) · 9.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="he" dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>CheeseFork - שיתוף היסטוגרמות</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="modules/bootstrap-rtl/css/bootstrap.min.css">
<link rel="stylesheet" href="modules/fontawesome/css/all.min.css">
<link rel="stylesheet" href="cheesefork.css">
<style>
p {
margin-bottom: .5rem;
}
li {
margin-bottom: 1rem;
}
h3 {
margin-top: 2rem;
}
</style>
</head>
<body class="bg-light">
<div class="container">
<nav id="top-navbar" class="navbar navbar-expand-md navbar-light">
<div id="top-navbar-supported-content" class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto">
<li id="top-navbar-home" class="nav-item">
<a class="nav-link" href=".">
<i class="fas fa-home"></i>
המערכת שלי
</a>
</li>
</ul>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#top-navbar-supported-content" aria-controls="top-navbar-supported-content" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<a class="navbar-brand" href=".">
<img src="logo.png" alt="logo" height="30">
<span class="font-weight-bold">CheeseFork</span>
</a>
</nav>
<div id="content-container">
<div class="my-2 my-md-0">
<h1>שיתוף היסטוגרמות</h1>
<p>עקבו אחרי השלבים הבאים בשביל לשתף את ההיסטוגרמות הנגישות לכם באתר הציונים של הטכניון.</p>
<p>ביצוע השלבים יגרום לקוד של שיתוף ההיסטוגרמות לרוץ בסביבת אתר הציונים של הטכניון. את הקוד ניתן לראות <a href="share-histograms.js" target="_blank"> כאן</a>.</p>
<p>המידע יישלח למאגר שמאוחסן ב-GitHub <a href="https://github.com/michael-maltsev/technion-histograms" target="_blank" rel="noopener">כאן</a>.</p>
<p>ישותף מידע כללי בלבד, כגון מספר הסטודנטים וממוצעי המבחנים. המידע ישותף רק לאחר לחיצה על כפתור השיתוף. לא ישותף מידע אישי.</p>
<p>את השיתוף ניתן לבצע גם מהפלאפון, לפחות דרך Chrome, וייתכן גם דרך דפדפנים אחרים שלא בדקנו.</p>
<h3>שלבי השיתוף עם התוסף <a href="https://chromewebstore.google.com/detail/technion-plus-plus/pfhjnidbfndnjhpcpfecngcigdjebemk" target="_blank" rel="noopener">Technion Plus Plus</a></h3>
<ol>
<li class="mb-0">
היכנסו
<a href="https://grades.technion.ac.il/" target="_blank" rel="noopener">לאתר הציונים של הטכניון</a>
והתחברו במידת הצורך.
</li>
<li class="mb-0">
לחצו על <a href="assets/share-histograms-guide-technionplus-1.png" target="_blank">כפתור שיתוף ההיסטוגרמות</a>.
</li>
<li>
דלגו לשלב 4 בהמשך עמוד זה.
</li>
</ol>
<h3>שלבי השיתוף ללא התוסף</h3>
<ol>
<li>
העתיקו את הקוד הבא:
<div class="form-row mt-2">
<div class="form-group mb-0 col-md-6">
<textarea dir="ltr" class="form-control" id="javascript-code-container" rows="4" onfocus="this.select();" onmouseup="return false;" readonly>avascript:var url='https://cheesefork.cf/share-histograms.js';var script=document.createElement('script');script.src=url;document.head.appendChild(script);</textarea>
<button type="button" class="btn btn-primary mt-2" id="javascript-code-copy-button">העתקת הקוד</button>
</div>
</div>
</li>
<li>
היכנסו לאתר הציונים של הטכניון והתחברו במידת הצורך.
<div class="form-group">
<a class="btn btn-primary mt-2" href="https://grades.technion.ac.il/" role="button" target="_blank" rel="noopener">כניסה לאתר הציונים</a>
</div>
</li>
<li>
<p>
<strong>עבור Chrome:</strong> הכניסו בשורת הכתובת את האות j, ולאחריה הדביקו את הקוד שהעתקתם בשלב 1. לבסוף לחצו Enter.<br>
<img class="border border-primary mt-2 img-fluid d-none d-sm-block" src="assets/share-histograms-guide-1.png" alt="הדביקו את הקוד כך">
<img class="border border-primary mt-2 img-fluid d-block d-sm-none" src="assets/share-histograms-guide-mobile-1.png" alt="הדביקו את הקוד כך">
</p>
<p>
<strong>עבור דפדפנים אחרים:</strong> תנסו לבצע את הנ"ל.
אם זה לא עובד (למשל האפשרות חסומה בגרסאות חדשות של Firefox)
תפתחו את ה-Developer Tools בדפדפן שלכם, עברו ללשונית Console,
הכניסו בשורת הקוד את האות j, ולאחריה הדביקו את הקוד שהעתקתם בשלב 1. לבסוף לחצו Enter.
</p>
</li>
<li>
<p>
המתינו לטעינת המידע, ולחצו על כפתור השיתוף הירוק לשיתוף ההיסטוגרמות.<br>
<strong>חשוב:</strong> אל תגלשו באתר הציונים בזמן הטעינה, גם לא בחלון אחר של הדפדפן.<br>
<img class="border border-primary mt-2 img-fluid d-none d-sm-block" src="assets/share-histograms-guide-2.png" alt="לחצו לשיתוף ההיסטוגרמות כך">
<img class="border border-primary mt-2 img-fluid d-block d-sm-none" src="assets/share-histograms-guide-mobile-2.png" alt="לחצו לשיתוף ההיסטוגרמות כך">
</p>
</li>
<li>
המתינו להשלמת השיתוף. גם בזמן השיתוף, אל תגלשו באתר הציונים, גם לא בחלון אחר של הדפדפן.
</li>
</ol>
</div>
</div>
<footer class="pt-4 text-muted text-center text-small">
<p class="mb-1">
תוכנת על ידי <a href="https://github.com/michael-maltsev" target="_blank" rel="noopener">מיכאל מלצב</a>.
</p>
</footer>
</div>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-115440973-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-115440973-1');
</script>
<script src="modules/fullcalendar/lib/jquery.min.js"></script>
<script src="modules/bootstrap-rtl/js/bootstrap.min.js"></script>
<script>
$('#javascript-code-copy-button').click(function () {
var button = $(this);
var code = $('#javascript-code-container').val();
copyToClipboard(code, function () {
var text = button.text();
button.text(text + ' ✓').prop('disabled', true);
setTimeout(function () {
button.text(text).prop('disabled', false);
}, 500);
}, function () {
alert('ההעתקה נכשלה');
});
});
// https://stackoverflow.com/a/30810322
function copyToClipboard(text, onSuccess, onFailure) {
if (!navigator.clipboard) {
fallbackCopyTextToClipboard(text);
return;
}
navigator.clipboard.writeText(text).then(function () {
onSuccess();
}, function (err) {
onFailure();
});
function fallbackCopyTextToClipboard(text) {
var textArea = document.createElement('textarea');
textArea.value = text;
document.body.appendChild(textArea);
textArea.focus();
textArea.select();
var successful = false;
try {
successful = document.execCommand('copy');
} catch (err) { }
document.body.removeChild(textArea);
if (successful) {
onSuccess();
} else {
onFailure();
}
}
}
</script>
</body>
</html>