Sha256: 52cc9c6b3678d5aec1e9cf33654453b6a984f190d266cdb8ae17bc0f3706b2a4
Contents?: true
Size: 1.21 KB
Versions: 45
Compression:
Stored size: 1.21 KB
Contents
/* # ----------------------------------------------------------------------------- # ~/assets/themes/j1/modules/rouge/js/select.js # Rouge theme selector # # Product/Info: # https://jekyll.one # https://github.com/rouge-ruby/rouge # # Copyright (C) 2023 Juergen Adams # Copyright (c) 2012 Jeanine Adkisson # # J1 Theme is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE.md # Rouge is licensed under the MIT License. # See: https://github.com/rouge-ruby/rouge/blob/master/LICENSE # ----------------------------------------------------------------------------- */ $(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
45 entries across 45 versions & 1 rubygems