$('#myTabs a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
$(function () {
$('[data-toggle="popover"]').popover()
})
//
var video = document.getElementById("videoId");
var playing = false;
document.getElementById("playSyncExample").addEventListener("click", function(){
video.currentTime = 30;
console.log("click")
if(playing){
console.log("stop")
video.pause();
playing = false;
}else{
console.log("play")
video.play()
playing = true;
}
});
//
var transcriptSection = document.getElementById("transcriptSection");
var papereditSection = document.getElementById("papereditSection");
function hideTranscripts(bol){
if(bol){
transcriptSection.className = "hidden-xs hidden-sm hidden-md hidden-lg";
papereditSection.className="col-xs-11 col-sm-11 col-md-11 col-lg-11 col-xs-offset-1"
}else{
transcriptSection.className = "col-xs-7 col-sm-7 col-md-7 col-lg-7";
papereditSection.className="col-xs-5 col-sm-5 col-md-5 col-lg-5"
}
}
function flipPage(){
if(window.orientation === 0){
// alert("portrait");
hideTranscripts(true);
}else {
// alert("landscape");
hideTranscripts(false);
}
}
// on page load
window.onload = function(e) {
// alert("window loaded");
flipPage();
};
//when moving is triggered
window.addEventListener("orientationchange", function() {
// Announce the new orientation number
flipPage();
}, false);
///
var left = document.getElementById("sampleTranscript");
var right = document.getElementById("samplePaperedit");
dragula([left,right], {
// // Besides the containers that you pass to dragula, or the containers you dynamically push or unshift from drake.containers, you can also use this method to specify any sort of logic that...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Fiddle Pages
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Get Fiddle Pages with PRO
Your fiddles accessible under a custom domain and a vanity path - the simplest hosting for your personal project.