Ray's changes in tags, css and js

This commit is contained in:
Christophe Vilayphiou authored and Christophe Vilayphiou committed 2012-04-02 02:55:36 +08:00
1 parent 6c50aa5243
commit 503f71e554
11 files changed
+172 -53

No files matched your search

+15 -23
View File
@@ -9,27 +9,14 @@ function resize() {
}
}
$(document).ready(function(){
$(document).on('click', '.orbit-bar-member', function(){
$(this).hasClass('open') ? $(this).removeClass('open') : $(this).addClass('open');
$('.bar-login .dropdown-menu').toggle();
return false;
});
$(document).click(function() {
$('.orbit-bar-member').removeClass("open");
$('.bar-login .dropdown-menu').hide();
});
$(document).on('click', '.bar-login .dropdown-menu', function(e) {
e.stopPropagation();
$('.bar-login .dropdown-menu').show();
});
$('.tip').tooltip({
placement: "left"
});
$(document).on('click', '.privacy', function() {
console.log($(this).val());
switch ($(this).val()) {
case 'true':
$(this).parents('.controls').children('.select-role').slideUp(300);
@@ -68,7 +55,7 @@ $(document).ready(function(){
$('#main-sidebar').tinyscrollbar();
$('.detal-list').tinyscrollbar();
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
mainTablePosition()
mainTablePosition();
/*isotope*/
var $container = $('#isotope');
@@ -87,18 +74,23 @@ $(window).resize(function(){
$('.post-title').css("width", viewportwidth-495);
$('#main-wrap > .subnav').css("width", viewportwidth-$mainWrapMarginLeft)
$('#main-sidebar').tinyscrollbar({size:(viewportheight-34)});
mainTablePosition()
mainTablePosition();
});
/*main-table position*/
function mainTablePosition() {
var $height = $('#main-wrap > .subnav').height()
var $table = $('#main-wrap > .table')
var $height = $('#main-wrap .subnav').length && $('#main-wrap .subnav').height();
var $table = $('#main-wrap > .table').length && $('#main-wrap > .table');
var $nottable = $('#main-wrap .nottable').length && $('#main-wrap .nottable');
//alert ($table.height())
$height = $height-17;
if($height<0){
$height = 0;
if($nottable==0){
if($height>0){
$height = $height-17;
}
$table.stop().animate({marginTop:$height},500);
}
$table.stop().animate({marginTop:$height},500)
if($table==0){
$nottable.css({marginTop:$height});
};
//$table.css({marginTop : $height})
}
$(window).scroll(function () {