Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

auto scroll

  • Loading branch information...
commit e6b5ee5b934b9b0743636d627b23bcec12bcd517 1 parent 9f5f277
Robo authored

Showing 2 changed files with 10 additions and 7 deletions. Show diff stats Hide diff stats

  1. 2  css/main.css
  2. 15  js/main.js
2  css/main.css
@@ -879,7 +879,7 @@ body {
879 879
 }
880 880
 
881 881
 #updates{
882  
-    bottom : 85%;
  882
+    bottom : 82%;
883 883
     height : 5%;
884 884
     left : 0px;
885 885
     padding: 3px; 
15  js/main.js
@@ -79,7 +79,7 @@
79 79
 		width: (w)+'px',
80 80
 		height: ((2/100)*w)+'px',
81 81
 		left: (0)+'px',
82  
-		bottom: ((71/100)*h)+'px'
  82
+		bottom: ((41/100)*w)+'px'
83 83
 	    });		
84 84
             
85 85
 	    $(element["pronite"]).css({
@@ -528,6 +528,10 @@
528 528
 		$(this).css({
529 529
 		    "display" : "none"
530 530
 		});
  531
+		setTimeout(function(){
  532
+		var t = document.getElementById(element["ev_title"]).offsetTop;
  533
+		document.getElementById("overlayed").scrollTop = t;
  534
+		},1000);	
531 535
 	    });
532 536
 	    
533 537
 	});
@@ -693,7 +697,6 @@
693 697
 	    var j, str = "";
694 698
 	    for(j = 0; j < x.length; ++j) {		
695 699
 			var  k;
696  
-			console.log(x[j].title);
697 700
 		str += '<div class="informalsx">';
698 701
 		if(x[j].title !== undefined && x[j].title !== "") 			
699 702
 		str += '<div class="inf_title '+ (x[j].title).replace(/[\(\)?'\s]/g, "") +'">' + x[j].title + "</div>";
@@ -710,7 +713,7 @@
710 713
 	    var str = "";
711 714
 	    for(i in x) {
712 715
 		var j;
713  
-			console.log(i);
  716
+
714 717
 		str += "<h3>" + i + "</h3>";
715 718
 		if(x[i].constructor == Array) 
716 719
 		    str += displayInformals(x[i]);
@@ -723,7 +726,7 @@
723 726
 	    var j, str = "";
724 727
 	    for(j = 0; j < x.length; ++j) {
725 728
 		var k;
726  
-		console.log (x[j].title);
  729
+
727 730
 		str += '<div class="eventx">';
728 731
 		if(x[j].title !== undefined && x[j].title !== "") 			
729 732
 		str += '<div class="ev_title '+ (x[j].title).replace(/[\(\)?'\s]/g, "") +'">' + x[j].title + "</div>";
@@ -790,7 +793,7 @@
790 793
 		    for(j = 0; j < x[i].length; j++) {
791 794
 				if(x[i][j].title !== undefined && x[i][j].title !== "") 		
792 795
 			etitle = (x[i][j].title).replace(/[\(\)?'\s]/g, "");
793  
-			str += '<li><a>' + x[i][j].title + '</a></li>';
  796
+			str += '<li id="'+(x[i][j].title).replace(/[\(\)?'\s]/g, "")+'"><a>' + x[i][j].title + '</a></li>';
794 797
 		    }
795 798
 		}
796 799
 		else {
@@ -840,7 +843,7 @@
840 843
 		    "margin-left": "0px"
841 844
 		}, 300);
842 845
 	    });
843  
-	    console.log($("."+element["ev_title"]).parent());
  846
+	
844 847
 	    $("."+element["ev_title"]).parent().css({
845 848
 		"display" : "block",
846 849
 		"margin-top": "500px",

0 notes on commit e6b5ee5

Please sign in to comment.
Something went wrong with that request. Please try again.