I dont know much about JS or Jquery so any help is appreciated. Bascially I want to use random url instead of fixed one . A random url can be fetched from an external flat text file http://example.com/url100.txt
The current code that I am using inside the section of the html page is as follow
<script type='text/javascript'>
//<![CDATA[
var mylinks = "http://google.com";
jQuery(document).ready(function ($) {
$('#default-usage .to-lock').sociallocker({
buttons: {order:["facebook-like","twitter-tweet","google-plus"]},
twitter: {url:"http://google.com"},
facebook: {url:"http://google.com"},
google: {url:"http://google.com"},
text: {
header: "Like us To Unlock This Content",
message: "This content is locked. Like us on Twitter, Facebook or Google plus to unlock it."
},
locker: {close: false, timer: 0,},
theme: "secrets"
});
});
//]]>
</script>
So basically instead of twitter: {url:"http://example.net"}, i want to use a random url. Hope I am clear with my question