Sha256: 2c43b2d935dd5dfab3fbe4e5c0d917726367c835ec45ff89620745fd898ca20e
Contents?: true
Size: 598 Bytes
Versions: 84
Compression:
Stored size: 598 Bytes
Contents
$(document).ready(function(){ $('.dropdown-menu a').click(function(){ $('#selected').html("Current Selection: <span class='bg-info text-white p-3 mb-2'>"+$(this).text()+"</span>"); }); }); function removeAllSyntaxStyles(){ $('link[rel=stylesheet][href*="syntax"]').remove(); } function addStyle(themename) { $('<link>').attr('rel','stylesheet') .attr('type','text/css') .attr('href','css/syntax-'+themename+'.css') .appendTo('head'); } function reaplyStyles(themename){ removeAllSyntaxStyles(); addStyle(themename); return true; }
Version data entries
84 entries across 84 versions & 1 rubygems