We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fa0fca commit a0db0f6Copy full SHA for a0db0f6
1 file changed
source/javascripts/codebuttons.js
@@ -7,8 +7,13 @@ initZclip = function(e) {
7
$('.tab-pane:hidden .copycode').unbind();
8
$('.tab-pane:hidden').find('.zclip').remove();
9
10
+ //this is kinda hacky but let's infer the root from the home button
11
+ var root = $('.nav-link > a')[0].href.replace('/index.html','');
12
+
13
+ path = root + "/flash/";
14
15
var options = {
- path:'/flash/ZeroClipboard.swf',
16
+ path: path + 'ZeroClipboard.swf',
17
copy: function(){
18
$('.copycode').html('<i class="icon-file"></i> Copy');
19
var element = $('#' + this.id.replace('copy_','code_'));
0 commit comments