Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To toggle pagetop modules with click to a menu option (592)
- $(".option592").click(function(){
- $("#pagetop_modules").toggle("slow");
- });
- // To prevent the default behaviour of the menu option = not to open the link.
- $(function() {
- $( ".option592 a" ).click(function(e) {
- e.preventDefault();
- });
- });
- // To put the image in the <h1 / hn> tag
- $(function() {
- $(".ImgTitle").hide(); //.siblings().prependTo(".ImgTitle showhide_heading");
- });
- // To select the button "discuss" to color it in pink
- $(function() {
- $("[href*='tiki-view_forum.php']").addClass('discuss');
- });
- //For custom boxes
- // Remove <br>
- $(function() {
- $(".SPBox br").remove();
- $(".ImgTitle").remove();
- });
- // Remove TikiWiki image attributes
- $(function() {
- $(".SPBox img").removeAttr('height width');
- });
- ///// Nice boxes jquery
- // To prevent the default behaviour of the Show more link.
- $(function() {
- $('[href="tiki-index.php?page=Show+More"]').click(function(e) {
- e.preventDefault();
- });
- });
- // To toggle more text box
- $(function() {
- $("[href*='tiki-index.php?page=Show+More']").click(function() {
- $(this).parent().siblings(".SPBox-Extended").slideToggle("slow");
- $(this).parent().siblings(".SPBox-Summary").slideToggle("slow");
- });
- });
- // To pulse Links (with css effects)
- $(".SPBox-Summary, .SPBox-Extended").hover(
- function() {
- $(this).siblings(".MoreLess").children().addClass("Big");
- }, function() {
- $(this).siblings(".MoreLess").children().removeClass("Big");
- }
- );
- /* Dynamic top menu positioning*/
- var num = 120; //number of pixels before modifying styles
- $(document).ready(function(){
- $(window).bind('scroll', function () {
- if ($(window).scrollTop() > num) {
- $('#topbar_modules, #pagetop_modules').addClass('fixed');
- } else {
- $('#topbar_modules, #pagetop_modules').removeClass('fixed');
- }
- });})
- // Moves all superfluous elements in presentation pages based on .no_pagetop class in the tools sector
- $(document).ready(function () {
- if ($('.no_pagetop') [0]) {
- var ToAppend = $('#pagetop_modules').last();
- $('.wikitopline, .categbar, .tocnav').appendTo(ToAppend);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement