comparison static/js/agora.js @ 149:cdfc1d269a75

Move syntax-highlighting JS to static/js/agora.js I don't remember why I did this but I assume I had a reason
author dellsystem <ilostwaldo@gmail.com>
date Mon, 15 Oct 2012 00:24:16 -0400
parents c3c4aaccbcd0
children fe51ec4eccc1
comparison
equal deleted inserted replaced
148:f876cc7b7270 149:cdfc1d269a75
63 $('.highlight-code-lines').click(function () { 63 $('.highlight-code-lines').click(function () {
64 $('.code-lines').selectText(); 64 $('.code-lines').selectText();
65 65
66 return false; 66 return false;
67 }); 67 });
68
69 // Changing syntax highlighting colours
70 var currentStyle = $('#change-highlighting').attr('data-default');
71 $('#change-highlighting').change(function () {
72 var newStyle = $(this).find(':selected').attr('data-name');
73
74 $('.snippet').removeClass(currentStyle).addClass(newStyle);
75 currentStyle = newStyle;
76 });
68 }); 77 });
69 })(jQuery); 78 })(jQuery);