跳转到主要内容
搜索表单
搜索
注册
|
登录
生活
旅游
学习
娱乐
博客
美航特惠
单程机票
往返机票
欢迎来到 HELLOAMERICA
立即登陆分享您的图片
主标签
创建新帐号
(活动标签)
登录
重设密码
用户帐户
用户名
*
您的用户名:允许空格;除英文句号(.)、横线(-)、单引号(')和下划线(_)外的标点符号不允许。
电子邮件地址
*
需要一个合法的邮件地址。所有的系统邮件都会发送到此地址。此地址不对外公开,当需要获取新密码或获取特定消息及通知时会使用此邮件地址。
最新日志
愿有人陪你一起颠沛流离
第70届金球奖获奖名单(电影类)
用小熊軟糖為藝術激盪出不一樣的花火
第85届奥斯卡完整提名名单《林肯》《少年派》领跑
好莱坞明星小猴生活奢华
男子将137张1美元折成小猪交罚
增强现实隐形眼镜在动物身上实验成功
欧洲“猫王”模仿秀 各路高手抢眼球
海贼黑胡子的海盗船获得确认
乔布斯游艇公开亮相:配7台iMac
更多
'); $('fieldset.collapsible').once('collapse', function () { var $fieldset = $(this); // Expand fieldset if there are errors inside, or if it contains an // element that is targeted by the uri fragment identifier. var anchor = location.hash && location.hash != '#' ? ', ' + location.hash : ''; if ($('.error' + anchor, $fieldset).length) { $fieldset.removeClass('collapsed'); } var summary = $('
'); $fieldset. bind('summaryUpdated', function () { var text=$.trim($fieldset.drupalGetSummary()); summary.html(text ? ' (' + text + ')' : ''); }) .trigger('summaryUpdated'); // Turn the legend into a clickable link, but retain span.fieldset-legend // for CSS positioning. var $legend = $('> legend .fieldset-legend', this); $('
') .append($fieldset.hasClass('collapsed') ? Drupal.t('Show') : Drupal.t('Hide')) .prependTo($legend) .after(' '); // .wrapInner() does not retain bound events. var $link = $('
') .prepend($legend.contents()) .appendTo($legend) .click(function () { var fieldset=$fieldset.get(0); // Don't animate multiple times. if (!fieldset.animating) { fieldset.animating = true; Drupal.toggleFieldset(fieldset); } return false; }); $legend.append(summary); }); }); $("body").addClass('no_scroll'); //body no scrolling //alert(window.location.protocol + '//' + window.location.hostname + atr_link); //history.pushState(null,null,window.location.protocol + '//' + window.location.hostname + atr_link); //oldurlpin=window.location.pathname; //setTimeout("checkHash()",200); $('body').click(function(event) { if (!$(event.target).closest('.p_zoom_in').length) { $(".overlay").remove(); $("body").removeClass("no_scroll"); }; }); oldurlpin=window.location.protocol + "//" + window.location.hostname + atr_link; //oldurlpin=window.location.pathname; //setTimeout("checkHash()",100); /* */ } return false; } var $container = $('.pin_page #content .content:has(.pin_box)'); $container.imagesLoaded(function(){ $container.masonry({ itemSelector: '.pin_box', columnWidth: 0 }); }); $container.infinitescroll({ navSelector : 'ul.pager', // selector for the paged navigation nextSelector : 'ul.pager .pager-next a', // selector for the NEXT link (to page 2) itemSelector : '.pin_box', // selector for all items you'll retrieve loading: { finishedMsg: '没有内容加载了', img: 'http://i.imgur.com/6RMhx.gif' } } , // trigger Masonry as a callback function( newElements ) { // hide new items while they are loading var $newElems = $( newElements ).css({ opacity: 0 }); // ensure that images load before adding to masonry layout $newElems.imagesLoaded(function(){ // show elems now they're ready window.a_second++; $newElems.addClass('second_'+a_second); $newElems.animate({ opacity: 1 }); $container.masonry( 'appended', $newElems, true ); if (checkBrowser()) $('.second_'+a_second+' .pin_image a').click(pin_image_click); $('.like-widget:not(.like-processed)').addClass('like-processed').each(function () { var widget=$(this); var ids=widget.attr('id').match(/^like\-([a-z]+)\-([0-9]+)\-([0-9]+)\-([0-9])$/); var data={ content_type: ids[1], content_id: ids[2], widget_id: ids[3], widget_mode: ids[4] }; $('a.like-button', widget).click(function() { var token=this.getAttribute('href').match(/like\=([a-zA-Z0-9\-_]{32,64})/)[1]; return Drupal.likeVote(widget, data, token); }); }); }); } ); if (checkBrowser()){ $('.pin_image a').click(pin_image_click); $('body').click(function(event) { if (!$(event.target).closest('.p_zoom_in').length && $('.p_zoom_in').length && $('.pin_image a').length) { //history.back(); }; }); } }); })(jQuery); //-->