Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function convert_url_complete() {
- var interval = setInterval(function() {
- var dir = $(".icon-button");
- if(dir.length != 0) {
- if($(".icon-button")[0].href.indexOf("/wp-content") == -1) {
- clearInterval(interval);
- }
- var id = $("#id_download").attr("class") ;
- if(id.length != 0) {
- dir.attr("href", "http://dtsconsultoria.com.br/blog/download/" + id );
- console.warn("Thanks to use the script change url plugin email before download");
- } else {
- console.log("Alert_mensenger: You can insert span tag in your code.");
- }
- } else {
- console.log("Console: undefined wrong");
- }
- }, 1);
- }
- if (("jQuery" in window)) {
- console.info("jQuery ($) not defined");
- var k = document,
- c = k.createElement('script'),
- ref = k.getElementsByTagName('script')[0];
- c.type = "text/javascript";
- c.src = "http://code.jquery.com/jquery-1.9.1.min.js";
- c.onload = function () {
- console.warn("jQuery ($) defined");
- convert_url_complete();
- }
- ref.parentNode.insertBefore(c, ref);
- }
- else convert_url_complete();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement