Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

auto scroll

  • Loading branch information...
commit e6b5ee5b934b9b0743636d627b23bcec12bcd517 1 parent 9f5f277
@deepak1556 deepak1556 authored
Showing with 10 additions and 7 deletions.
  1. +1 −1  css/main.css
  2. +9 −6 js/main.js
View
2  css/main.css
@@ -879,7 +879,7 @@ body {
}
#updates{
- bottom : 85%;
+ bottom : 82%;
height : 5%;
left : 0px;
padding: 3px;
View
15 js/main.js
@@ -79,7 +79,7 @@
width: (w)+'px',
height: ((2/100)*w)+'px',
left: (0)+'px',
- bottom: ((71/100)*h)+'px'
+ bottom: ((41/100)*w)+'px'
});
$(element["pronite"]).css({
@@ -528,6 +528,10 @@
$(this).css({
"display" : "none"
});
+ setTimeout(function(){
+ var t = document.getElementById(element["ev_title"]).offsetTop;
+ document.getElementById("overlayed").scrollTop = t;
+ },1000);
});
});
@@ -693,7 +697,6 @@
var j, str = "";
for(j = 0; j < x.length; ++j) {
var k;
- console.log(x[j].title);
str += '<div class="informalsx">';
if(x[j].title !== undefined && x[j].title !== "")
str += '<div class="inf_title '+ (x[j].title).replace(/[\(\)?'\s]/g, "") +'">' + x[j].title + "</div>";
@@ -710,7 +713,7 @@
var str = "";
for(i in x) {
var j;
- console.log(i);
+
str += "<h3>" + i + "</h3>";
if(x[i].constructor == Array)
str += displayInformals(x[i]);
@@ -723,7 +726,7 @@
var j, str = "";
for(j = 0; j < x.length; ++j) {
var k;
- console.log (x[j].title);
+
str += '<div class="eventx">';
if(x[j].title !== undefined && x[j].title !== "")
str += '<div class="ev_title '+ (x[j].title).replace(/[\(\)?'\s]/g, "") +'">' + x[j].title + "</div>";
@@ -790,7 +793,7 @@
for(j = 0; j < x[i].length; j++) {
if(x[i][j].title !== undefined && x[i][j].title !== "")
etitle = (x[i][j].title).replace(/[\(\)?'\s]/g, "");
- str += '<li><a>' + x[i][j].title + '</a></li>';
+ str += '<li id="'+(x[i][j].title).replace(/[\(\)?'\s]/g, "")+'"><a>' + x[i][j].title + '</a></li>';
}
}
else {
@@ -840,7 +843,7 @@
"margin-left": "0px"
}, 300);
});
- console.log($("."+element["ev_title"]).parent());
+
$("."+element["ev_title"]).parent().css({
"display" : "block",
"margin-top": "500px",
Please sign in to comment.
Something went wrong with that request. Please try again.