Skip to content

Instantly share code, notes, and snippets.

@mdogadailo
Last active December 14, 2015 00:09
Show Gist options
  • Save mdogadailo/4996913 to your computer and use it in GitHub Desktop.
Save mdogadailo/4996913 to your computer and use it in GitHub Desktop.

Revisions

  1. mdogadailo revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AT-ElementsList.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 215px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea><span id="close_at" style="text-decoration:underline; cursor:pointer">Close</span></div>');$('#close_at').one('click', function(){$('#code_block').remove();});$('#code').html(config_str+proper_str+'');void(0);
    javascript:all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>"; $('body').append('<div id="code_block" style="width: 500px;height: 215px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea><span id="close_at" style="text-decoration:underline; cursor:pointer">Close</span></div>');$('#close_at').one('click', function(){$('#code_block').remove();});$('#code').html(config_str+proper_str+'');void(0);
  2. mdogadailo revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AT-ElementsList.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 200px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea><span id="close_at" style="text-decoration:underline; cursor:pointer">Close</span></div>');$('#close_at').one('click', function(){$('#code').remove();});$('#code').html(config_str+proper_str+'');void(0);
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 215px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea><span id="close_at" style="text-decoration:underline; cursor:pointer">Close</span></div>');$('#close_at').one('click', function(){$('#code_block').remove();});$('#code').html(config_str+proper_str+'');void(0);
  3. mdogadailo revised this gist Feb 20, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion AT-ElementsList.js
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 200px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea></div>');$('#code').html(config_str+proper_str);void(0);
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 200px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea><span id="close_at" style="text-decoration:underline; cursor:pointer">Close</span></div>');$('#close_at').one('click', function(){$('#code').remove();});$('#code').html(config_str+proper_str+'');void(0);
  4. mdogadailo created this gist Feb 20, 2013.
    1 change: 1 addition & 0 deletions AT-ElementsList.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    javascript:if(console.clear){console.clear();}all={},j=0;$(".edit-delet-links a:contains('edit')").each(function(){var e,t,n;e=this.href.split("/");t=e[e.length-1];n=$(this).parents(".content-element-block").find('.edit-cell-wrap input[type="radio"]');all[t]=[];n.each(function(){all[t].push(this.value)})});config_str='<property name="maxyBox">\n <map>';proper_str="";for(i in all){j++;config_str+='\n <entry key="Box'+j+'" value="'+i+'" />';proper_str+='<property name="ListOfVar'+j+'" value="'+all[i].join(",")+'"/>\n'}config_str+="\n </map>\n</property>";/*console.log(config_str+proper_str);*/ $('body').append('<div id="code_block" style="width: 500px;height: 200px;position: absolute;left: 10px;top: 10px;padding: 10px;background: #FFF;border-radius: 10px;z-index: 10000000000;"><textarea id="code" style="height: 190px;border: 1px solid #000;width: 490px;"></textarea></div>');$('#code').html(config_str+proper_str);void(0);