Skip to content

Commit

Permalink
improvements to the site #2
Browse files Browse the repository at this point in the history
  • Loading branch information
nir-jackson committed Mar 5, 2015
1 parent 088d185 commit 3ab63f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
9 changes: 5 additions & 4 deletions WebSite/includes/Top3.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@



var domain = "http://viz.calcalist.co.il/otr/data/";
var domain = "http://viz.calcalist.co.il/otr/data";
var json = {
"array":
[
Expand Down Expand Up @@ -254,7 +254,7 @@ var poli_json = {
"gender":"M"
},
{
"name": "ציפי חותובלי",
"name": "ציפי חוטובלי",
"id": "TzipiHotovely",
"gender":"F"
},
Expand Down Expand Up @@ -672,7 +672,8 @@ $(function(){
error: function (xhr, ajaxOptions, thrownError) {
console.log(xhr.status);
console.log(thrownError);

$(' #loading ').css('display','none');
$('.oops').css('display','block');
}


Expand Down Expand Up @@ -788,7 +789,7 @@ $(document).ready(function(){
st1= 'style=" font-size: 30px !important; "';
st2= 'style=" font-size: 26px !important; margin-right: 25px !important; line-height: 40px !important; "';
}
var temporary = [date.substring(0,4),date.substring(5,7),date.substring(8,10),'<p class="textlightbox" dir="rtl"><p class="lightdate1" '+st1+'><b class="textblue">' + datepretty + '</b></p><p class="lightdate2" '+st2+' dir="rtl">' + tempstr1 + '<b class="textblue">' + top10[index-1][4] + '</b>' + tempstr2 +' <a target="_blank" href="'+ data.objects[0].facebook_link +'" style="text-decoration:none; color:#2490f5">לפוסט</a><br><br></p>'];
var temporary = [date.substring(0,4),date.substring(5,7),date.substring(8,10),'<p class="textlightbox" dir="rtl"><p class="lightdate1" '+st1+'><b class="textblue">' + datepretty + '</b></p><p class="lightdate2" '+st2+' dir="rtl">' + tempstr1 + '<b class="textblue">' + top10[index-1][4] + '</b>' + tempstr2 +' <a target="_blank" href="'+ data.objects[0].facebook_link +'" style="text-decoration:none; color:white; font-size:16px;">&emsp;לפוסט המלא</a><br><br></p>'];
outputarray.push(temporary);
}
if (FBapicounter == single.length){
Expand Down
5 changes: 3 additions & 2 deletions WebSite/includes/Visualization.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var domain = "http://viz.calcalist.co.il/otr/data/";
var domain = "http://viz.calcalist.co.il/otr/data";

window.addEventListener("resize", resize);
var _mobile = false;
Expand Down Expand Up @@ -498,7 +498,7 @@ function a_clicked(obj){
var tempstr2 = data.objects[0].content.substring(n+word.length,p+1);
var date = data.objects[0].published.substring(0,10);
var datepretty = date.substring(8,10) + "." + date.substring(5,7) + "." + date.substring(0,4);
var temporary = [date.substring(0,4),date.substring(5,7),date.substring(8,10),'<p class="textlightbox2" dir="rtl"><p class="lightdate3"><b class="textblue">' + datepretty + '</b></p><p class="lightdate4" dir="rtl">' + tempstr1 + '<b class="textblue">' + word + '</b>' + tempstr2 +' <br><br></p>'];
var temporary = [date.substring(0,4),date.substring(5,7),date.substring(8,10),'<p class="textlightbox2" dir="rtl"><p class="lightdate3"><b class="textblue">' + datepretty + '</b></p><p class="lightdate4" dir="rtl">' + tempstr1 + '<b class="textblue">' + word + '</b>' + tempstr2 +' <a target="_blank" href="'+ data.objects[0].facebook_link +'" style="text-decoration:none; color:white; font-size:14px;">&emsp;לפוסט המלא</a><br><br></p>'];
outputarray.push(temporary);
}
//console.log(FBapicounter + " " + times);
Expand All @@ -516,6 +516,7 @@ function a_clicked(obj){

});
for (i=1; i<outputarray.length; i++){ finaloutput = finaloutput + outputarray[i][3];}
finaloutput = finaloutput + '<p class="lightdate2" dir="rtl" style="width:100%;margin-bottom:16px;margin-right:26px;"><span style="color:#2490F5; font-size:14px;">כרגע המערכת סופרת מלים משנת 2009 אבל מראה סטטוסטים רק משנת 2012 ואילך בשל מגבלות טכניות. אנחנו עובדים על להרחיב את זה לשנים קודמות</span></p>';
//$(' #loading ').css('display','none');
//console.log(finaloutput);
$('.message').append(finaloutput);
Expand Down
4 changes: 2 additions & 2 deletions WebSite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<a href="http://www.shenkar.ac.il/"><img src="images/shenkarred.png" class="smallerlogos"></a>

<div class="share">
<div class="fb-share-button" data-href="http://shenkar.html5-book.co.il/2014-2015/lab/Shura_Tahtona/" data-layout="button_count"></div>
<div class="fb-share-button" data-href="http://viz.calcalist.co.il/otr/web/" data-layout="button_count"></div>
</div>
</div>
<section dir="rtl">
Expand Down Expand Up @@ -233,7 +233,7 @@
<b>פרוייקט "שורה תחתונה" נוצר בסדנת הדאטה ג'ורנליזם<br>
של כלכליסט ושנקר.</b> הפרוייקט עושה שימוש בנתונים מעמודי הפייסבוק<br>
של הפוליטיקאים ובנתוני <a href="http://kikar.org" target="_blank">כיכר המדינה</a> של <a href="http://www.hasadna.org.il/" target="_blank">הסדנא לידע ציבורי</a>.<br>
כל הנתונים מתעדכנים אוטומטי.<br>
כל הנתונים מתעדכנים באופן אוטומטי.<br>
<br>
<span class="mobileremove">
<a href="FAQ_new.pdf" target="_blank">
Expand Down

0 comments on commit 3ab63f3

Please sign in to comment.