-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsidebarJavaScript.php
More file actions
59 lines (53 loc) · 1.64 KB
/
sidebarJavaScript.php
File metadata and controls
59 lines (53 loc) · 1.64 KB
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
<script type="text/javascript">
$(function()
{
$("#tg").click(function()
{
var cl = $(this).attr("class");
if(cl==='fas fa-arrow-alt-circle-right')
{
$("#tg").removeClass('fas fa-arrow-alt-circle-right');
$("#tg").addClass('fas fa-arrow-alt-circle-left');
}
else
{
$("#tg").removeClass('fas fa-arrow-alt-circle-left');
$("#tg").addClass('fas fa-arrow-alt-circle-right');
}
$("#sb").animate({width: 'toggle'});
return false;
});
});
function tgllist(id)
{
//var list=document.getElementById(id);
id="#"+id;
$(id).slideToggle();
}
function playvid(path,status)
{
path=path.toString()
var video=document.getElementById('vidshow');
document.getElementById('viddiv').style.display="block";
var source=document.getElementById('srcvid');
source.setAttribute('src', path);
video.load();
if(status===0)
{
var temp=path.replace('videos/','');
document.getElementById("publish").style.display="block";
document.getElementById("vidpub").value=temp;
}
else
{
document.getElementById("publish").style.display="none";
document.getElementById("vidpub").value="";
}
//srcvid.src=path;
}
$(document).ready(function(){
$('#vidshow').bind('contextmenu',function() { return false; });
$('#tg').click();
document.getElementById('viddiv').style.display="block";
});
</script>