사용자:Itsurea/common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
1번째 줄: 1번째 줄:
$(document).ready( function() {
jQuery(document).ready(function($){
    $('').appendTo('head').attr({rel: 'stylesheet',type: 'text/css',href: 'darklibre.css'});
  loadCSS = function(href) {
    var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
    $("head").append(cssLink);
};
// load the css file
loadCSS("darklibre.css");
 
});
});

2015년 5월 30일 (토) 04:03 판

jQuery(document).ready(function($){
  loadCSS = function(href) {
     var cssLink = $("<link rel='stylesheet' type='text/css' href='"+href+"'>");
     $("head").append(cssLink); 
 };
 
 // load the css file 
 loadCSS("darklibre.css");

});