-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjava.js
100 lines (81 loc) · 2.97 KB
/
java.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<script>
window.fbAsyncInit = function() {
// init the FB JS SDK
FB.init( {
app_id : '250524601748571',
xfbml : true // parse XFBML tags on this page?
});
};
(function(d, debug){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all" + (debug ? "/debug" : "") + ".js";
ref.parentNode.insertBefore(js, ref);
}(document, /*debug*/ false));
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1&appId=250524601748571";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
!function(d,s,id){
var js,fjs=d.getElementsByTagName(s)[0];
if(!d.getElementById(id)){
js=d.createElement(s);
js.id=id;js.src="//platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js,fjs);
}
}(document,"script","twitter-wjs");
function popitup(url) {
newwindow=window.open(url,'name','height=400,width=400');
if (window.focus) {newwindow.focus()}
return false;
}
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-39120737-1']);
_gaq.push(['_setDomainName', 'thoseannoyingdupes.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
function validate(frm)
{
var ele = frm.elements['playlist[]','tracks[]'];
if (! ele.length)
{
alert(ele.value);
}
for(var i=0; i<ele.length; i++)
{
alert(ele[i].value);
}
return true;
}
function add_pl_feed()
{
var div1 = document.createElement('div');
// Get template data
div1.innerHTML = document.getElementById('newplaylist').innerHTML;
// append to our form, so that template data
//become part of form
document.getElementById('newlink').appendChild(div1);
}
function add_tr_feed()
{
var div1 = document.createElement('div');
// Get template data
div1.innerHTML = document.getElementById('newtracklist').innerHTML;
// append to our form, so that template data
//become part of form
document.getElementById('newlink2').appendChild(div1);
}
</script>