require(['jquery'], function (JetCSKJQ) {
var jq = JetCSKJQ;
//% Replace Browser Favorite Icon(s);
//% Get CSK FavIcon URL;
var cskFavIcon = getImageUrl('CSK_LOGO_FAVICON');
//% If Classic;
if ( jq("#ptbr_header_container").length > 0) {
//% create div for favIcon
var favIcon = document.createElement("LINK");
//% set attributes and innerHTML
favIcon.setAttribute("rel","shortcut icon");
favIcon.setAttribute("href", cskFavIcon);
//% insert favIcon div in the head element
document.getElementsByTagName('head')[0].appendChild(favIcon);
} else {
//% Fluid;
//% Replace Browser Favorite Icon(s);
jq('head link[href*=LOGO_FAVICON]').attr('href', cskFavIcon);
}
//% Replace Fluid Processing Icon;
var cskProcessingFmode = getImageUrl('CSK_PROCESSING_FMODE');
jq('#processing[src*=PT_PROCESSING_FMODE]').attr('src', cskProcessingFmode);
});
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.