/* SF State Template style.js
* This script will be the default js file to ship with the SF State Template theme.
*/
(function($) {
Drupal.behaviors.drupaldeveloper = {
attach: function (context) {
// Search box action
$('#search-box').submit(function(){
var topSearch = $('input[name=top-search]:checked').attr('value');
var searchString = $('input[name=q]').val();
if (topSearch == 'global') {
$("#search-box").attr("action", "http://google.sfsu.edu/gsearch/" + searchString);
$("#search-box").attr("method","post");
} else {
$("#search-box").attr("action", "/gsearch/" + searchString);
$("#search-box").attr("method","post");
}
});
// End Search box action
$(window).on("load", function() {
// Footer position calculation
if($('.main-container').length) {
$(window).on('load resize', function() {
/* Get heights of the elements */
var headerHeight = $('#header').outerHeight();
var siteNameHeight = $('.site-name').outerHeight();
var navHeight = $('.main-nav').outerHeight();
var footerLocalHeight = $('.footer-local').outerHeight();
var footerHeight = $('.footer').outerHeight();
var mainHeight = $(window).height() - headerHeight - siteNameHeight - navHeight - footerLocalHeight - footerHeight;
// Set min height for Main div and content area
$('.main-container').css({"min-height":mainHeight});
}).trigger('resize');
}
// End Footer position calculation
});
// If div has page not found component
if ($("div").hasClass("pl-component--page-not-found")) {
// Then add class screen reader tag to heading 1
$("h1.page-header").addClass("sr-only");
}
// End Page Not Found
}
}
})(jQuery);
沙巴官网
威尼斯人娱乐城
Crown-Sports-help@ehuahui.net
视界网新闻专区
文芳阁软文发布平台
沙巴体育
The-Venetian-Casino-admin@phongnetduykhang.com
体育博彩
太阳城
滨州中公教育网
bet365-Sports-hr@qx9892.com
Betting-company-marketing@ssttmall.com
威廉希尔
新葡京
God-of-the-sea-billing@futurecarreview.com
皇冠体育
易语言汉语编程官方站
William-Hill-Asia-customerservice@anyacargomanagement.net
The-University-of-Macau-support@leancuisinecoupons.com
西瓜影院
中国银联开放平台
华东师范大学本科招生网
舟山赶集网
日出日落时间查询
中江种业
枫盛阳
衣联网论坛
云铜科技
任丘人在线
车主之家汽车新闻网
重庆大学本科招生在线
中国五金网
站点地图
吉林违章查询网