Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
9
Добавлен:
27.05.2015
Размер:
2.81 Кб
Скачать
function supportlink_display(Y,forceHide){var sNode=Y.one('#supportmail');if(!sNode){return;}
var pageNode=Y.one('#page');var leftPos=pageNode.getX()+pageNode.get('clientWidth')-sNode.get('clientWidth');sNode.setStyle('left',leftPos+'px');var infNode=Y.one('#supportinf');var infHeight=parseInt(infNode.get('clientHeight'));switch(true){case sNode.hasClass('expanded')||forceHide:sNode.setStyle('top','-'+infHeight+'px');sNode.replaceClass('expanded','collapsed');break;case sNode.hasClass('collapsed'):sNode.setStyle('top','0px');sNode.replaceClass('collapsed','expanded');break;}}
function phone_call(phonenum){var phonelink;var interre=/^\+/;if(/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)){phonelink='tel:'+phonenum;}else if(interre.test(phonenum)){phonelink='callto:'+phonenum;}else{return false;}
window.location.href=phonelink;return true;}
function styleCheckbox(Y,elemid,picunch,picch,elemchecked){var elem=document.getElementById(elemid);if(!elem){return;}
if(elemchecked==-1){elemchecked=elem.checked;}
else{elem.checked=elemchecked;}
elem.style.position='absolute';elem.style.top='-2000px';var parentnode=elem.parentNode;var picurl=elemchecked?picch:picunch;parentnode.style.backgroundImage='url(\''+picurl+'\')';parentnode.onclick=function(){styleCheckbox(Y,elemid,picunch,picch,!elemchecked);return false;};return;}
function mod_book_diplay_chapters(aobj){var dlobj=aobj;while(dlobj&&dlobj.nodeName!='DL'){dlobj=dlobj.parentNode;}
dlobj.className=(dlobj.className=='opened')?'closed':'opened';return;}
function fixCustomMenu(Y){var ulNode=Y.all('ul.custommenuroot').shift();if(!ulNode){return;}
var divNode=ulNode.ancestor('div');var divWidth=parseInt(divNode.getComputedStyle('width'));var imgNodes=ulNode.all('img');var numImg=imgNodes.size();var sumImgWidth=0;var sumLiWidth=0;for(var i=0;i<numImg;i++){var imgNode=imgNodes.item(i);sumImgWidth+=parseInt(imgNode.getComputedStyle('width'));sumLiWidth+=parseInt(imgNode.ancestor('li').getComputedStyle('width'));}
if(sumLiWidth==divWidth){return;}
if(sumImgWidth>=divWidth){return;}
var eSpace=divWidth-sumImgWidth;var cPadding=parseInt(eSpace/numImg/2);var cPaddingLast=cPadding+eSpace-(cPadding*2*numImg);for(var i=0;i<numImg;i++){var spanNode=imgNodes.item(i).ancestor('span');var rPadding=(i+1)==numImg?cPaddingLast:cPadding;spanNode.setStyle('paddingLeft',cPadding+'px');spanNode.setStyle('paddingRight',rPadding+'px');}
Y.use('cookie',function(Y){Y.Cookie.set('custommenu',cPadding+'-'+cPaddingLast,{path:'/'});});}
function notifua_ualist(Y,forceHide){var listNode=Y.one('#ualist');if(!listNode){return;}
if(listNode.hasClass('accesshide')&&!forceHide){listNode.removeClass('accesshide');}else{listNode.addClass('accesshide');Y.use('cookie',function(Y){Y.Cookie.set('notifuahide',1,{path:'/'});});}
return;}
Соседние файлы в папке Оформление курсовой работы_files
  • #
    27.05.201523.01 Кб9analytics.js
  • #
    27.05.2015238 б15image.png
  • #
    27.05.20156.43 Кб9javascript.js
  • #
    27.05.20152.81 Кб9javascript.php
  • #
    27.05.20153.42 Кб9javascript_002.js
  • #
    27.05.20151.92 Кб9javascript_003.js
  • #
    27.05.201534.24 Кб9javascript_004.js
  • #
    27.05.20158.46 Кб9javascript_005.js
  • #
    27.05.20151.6 Кб10javascript_006.js