How my external JavaScript does not run. can you help? It Is the same JavaScript file and index file as before. Best I can tell the path to the external JavaScript is the same
@tracknutMar 20.2020 — #Give us a link to the site please, or all we can do is guess. But my guess is that the path to the external JavaScript is not correct :)
@JimMegauthorMar 20.2020 — #awhisperofthunder.com look at line 33 and 174
// JavaScript Document
$(window).load(function() {
$('#my-email').html(function(){
var e = "talk";
var e2 = "tous";
var a = "@";
var d = "awhis";
var d2 = "perofth";
var d3 = "under";
var c = ".c";
var c2 = "om"
var s = "?subject="
var s2 = "Questions To A Whisper Of Thunder"
var b = "&body="
var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)."
var linktext = "We'd love to hear from you. Send us an email.";
var h = 'mailto:' + e + e2 + a + d + d2 + d3 + c + c2 + s + s2 + b + b2;
@tracknutMar 20.2020 — #The file at http://awhisperofthunder.com/js/2awot.js is not what you've listed above. It looks like this: // JavaScript Document $(window).load(function() { $('#my-email').html(function(){ var e = "jim"; var e2 = "walt"; var e3 = "er757 var a = "@"; var d = "gm"; var d2 = "ail"; var c = ".c"; var c2 = "om" var s = "?subject=" var s2 = "Questions To A Whisper Of Thunder" var b = "$body=" var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)." var linktext = "We'd love to hear from you. Send us an email."; var h = 'mailto:' + e + e2 + e3 + a + d + d2 + c + c2 + s + s2 + b + b2; $(this).parent('a').attr('href', h); return linktext; }); });
<i> </i>} <i> </i> And line 6 with the missing closing quote and semi-colon is causing it to terminate.
@tracknutMar 20.2020 — #If you fixed this line, it has not been updated on the server that I'm looking at. Click on the link to 2awot.js that I put in the post above - does it show you the code you expect?
@JimMegauthorMar 20.2020 — #I keep getting this mess "please enable javascript to view"
I'm sending more info I hope will help use
Thanks for your time
here is the javascript I have now
// JavaScript Document
$(window).load(function() {
$('#my-email').html(function(){
var e = "jim";
var e2 = "walt";
var e3 = "er757";
var a = "@";
var d = "gm";
var d2 = "ail";
var c = ".c";
var c2 = "om";
var s = "?subject="
var s2 = "Questions To A Whisper Of Thunder"
var b = "$body="
var b2 = "We have inserted the subject line for you because we are sorting our incoming email by the subject line. Don't change the subject line. You can delete this message before writing your question(s)."
var linktext = "We'd love to hear from you. Send us an email.";
var h = 'mailto:' + e + e2 + e3 + a + d + d2 + c + c2 + s + s2 + b + b2;
$(this).parent('a').attr('href', h);
return linktext;
});
});
}
here is the call to load the javascript from line 33 of the index file