/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ jQuery(function($) { var winwidth = $(window).width(); if ($(window).width() < 1004) { /* if (true || $("#col1").css("display") != "none") { */ $("#menue").prependTo($("div#main")); $("#col1").insertAfter($("#col2")).css("display", "block"); $("#menue").prependTo($("div#main")); // Menüspalte var men = $("#menue ul"); var menue_disp = $("#menue").css("display"); var men_top = $("#menue .menuetitel a.aktiv"); if ((menue_disp != "none") && (men.length > 0)) { //$(".menuetitel").css("padding-left","22px"); $("#menue a").each(function() { var pt = (parseInt($(this).css("padding-top")) + 2) + "px"; var pb = (parseInt($(this).css("padding-bottom")) + 2) + "px"; $(this).css({paddingTop: pt, paddingBottom: pb}); //$("#inhalt").append('
'+pt+'
'+pb); }); if (men_top.length == 0) { var mentit = $("#menue .menuetitel"); var mentitel = mentit[0]; $(".menuetitel").css("padding-right", "22px"); $(".menuetitel").css({"padding-right": "22px", position: 'relative'}); $("
").attr("id", "menue_toggler").text("+") //.insertBefore("#menue") .prependTo(mentitel) .click(function() { var menue_stat = $("#menue_toggler").text(); if (menue_stat == "-") menue_show(); else menue_hide(); }); var mth = $(".menuetitel").height() - 16; $("#menue_toggler").height(mth + "px"); function menue_show() { $("#menue li").hide(); $("#menue li.open").show(); $("#menue li.aktiv li").show(); //$("#menue:has(.menuetitel a.aktiv) li").show(); $("#menue_toggler").text("+").removeClass("offen"); } function menue_hide() { $("#menue li").show(); $("#menue_toggler").text("-").addClass("offen"); } menue_show(); } } /* } */ } if ($(window).width() < 728) { $("
").attr("id", "navioverlay").prependTo($("body")); $("
").attr("id", "menuebutton").appendTo($("#header")).click(function() { //$("#navioverlay").toggle(); var st = $(document).scrollTop() + 'px'; var navpos = ($('#navioverlay').css("top")); //alert(st + ' - ' + navpos); if ((st == navpos) && ($('#navioverlay').css('display') == 'block')) $('#navioverlay').fadeOut(300); else $("#navioverlay").fadeIn(300).css({display: 'block', top: st}); // alert('"' + $(document).scrollTop() + 'px "' + $("#navioverlay").css("width")); //$("#horizMenue").toggle(); }); //Hide the menus if visible $('html').click(function() { $('#navioverlay').hide(); }); $('#navioverlay').click(function(event) { event.stopPropagation(); }); $('#menuebutton').click(function(event) { event.stopPropagation(); }); $("#horizMenue").appendTo("#navioverlay").css({height:"auto"}); $("#suche").prependTo("#horizMenue").css("display", "block"); $("#unilogin").prependTo("#horizMenue").css({"display":"block"}); $(".tx-srlanguagemenu-pi1").prependTo("#horizMenue"); $("#faklink").insertBefore($("div#main")); $("#bereich-titel").insertBefore($("div#main")); $("#site-titel").before($("#menue")); $("a#main").remove(); $("#c86360").css({left: 'auto', right: '50px', top: "0px"}); $("#c86360 img") .attr("src", "http://www.uni-oldenburg.de/fileadmin/templates/img/40.png") .removeAttr("width").removeAttr("height") .css({"border-bottom-left-radius": '0px', "border-bottom-right-radius": '0px'}); var inh_width = $('#inhalt').width(); $("div#main table,div#main form").wrap('
'); $(".scroll_wrap").css({width: '100%', overflowX: 'auto'}); if ($(window).width() < 418) $(".multicolumnContainer li.column").css({width: "100%", maxWidth: inh_width}); $(".layout1 .multicolumnContainer li.column").css({width: "100%", maxWidth: inh_width}); $("#inhalt img").each(function() { var divw = $(this).closest("div").width(); var iw = $(this).width(); // var ci = $(this).closest(".columnItems"); // var ciw = $(ci).width()?$(ci).width():false; // if(ciw && (iw > ciw)) $(this).removeAttr("width").removeAttr("height").css({width:ciw,maxWidth:ciw,height:'auto'}); // else if (iw > divw /*$('#inhalt').width()*/) $(this).removeAttr("width").removeAttr("height").css({width: divw, height: 'auto', maxWidth: '100%'}); //attr("width",$('#inhalt').width()).attr("height","auto"); }); $(".csc-textpic-intext-right-nowrap .csc-textpic-imagewrap").css({float: "none", marginLeft: 0}); $(".csc-textpic-intext-right-nowrap .csc-textpic-imagewrap + div").css({marginRight: 0, marginTop: "20px"}); $(".csc-textpic-intext-left-nowrap .csc-textpic-imagewrap").css({float: "none", marginRight: 0}); $(".csc-textpic-intext-left-nowrap .csc-textpic-imagewrap + div").css({marginLeft: 0, marginTop: "20px"}); $(".news-image img").removeAttr("width").removeAttr("height").attr("width", $('#inhalt').width()); $("ul.news-list-slides li").removeAttr("width").removeAttr("height"); // $("tbody").css({maxWidth: inh_width + 'px', overflow: 'scroll'}); } /* Wenn sich die Fensterbreite ändert, Seite neu laden */ $(window).resize(function() { if ($(window).width() != winwidth) document.location.href = document.location.href; }); });