This repository has been archived by the owner on Jun 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscripts.js
25 lines (24 loc) · 1.43 KB
/
scripts.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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://static.tumblr.com/p0knose/Uvepp99oy/modified_photosets.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fitvids/1.2.0/jquery.fitvids.min.js"></script>
<script>
$(document).ready(function(){
var color = '#111';
$('.soundcloud_audio_player').each(function(){
$(this).attr({ src: $(this).attr('src').split('&')[0] + '&liking=false&sharing=false&auto_play=false&show_comments=false&continuous_play=false&buying=false&show_playcount=false&show_artwork=true&origin=tumblr&color=' + color.split('#')[1], height: 20, width: '100%' });
});
$('iframe.tumblr_audio_player').load(function(){
$(this).contents().find("head").append("<style type='text/css'> .audio-player {background:transparent!important;} .icon {color:#111!important;} </style>");
});
initPhotosets();
$(".posts").fitVids({customSelector:"iframe[src*='www.tumblr.com/video']"});
$('.photolight').click(function(e){
var lbArray = [];
var arrayContents = {"width":$(this).data('width'), "height":$(this).data('height'), "low_res":$(this).data("lowres"), "high_res":$(this).data('highres')};
lbArray.push(arrayContents);
Tumblr.Lightbox.init(lbArray,1);
$('body').toggleClass('tumblr_lightbox_active');
e.preventDefault();
});
});
</script>