customjs.txt 1.29 KB
if (url.includes('/mod/hvp/')){
    	$(document).ready(function(){
    		 var m = document.getElementsByClassName("h5p-iv-hotkey-instructions");
    		 console.log(m);
    		var check=$("div.h5p-iv-hotkey-instructions").html();
    		var check1=$('div.h5p-iv-hotkey-instructions').text();
    		console.log(check);
    		console.log(check1);
    		setTimeout(function(){
    			$('#mynotepencil').click(function(){
    				
    				var check=$('.h5p-iv-hotkey-instructions').html();
    				var check1=$('.h5p-iv-hotkey-instructions').text();
    				console.log(check);
    				console.log(check1);
    				alert(check);
//  				var valuetime= $(".h5p-control, .h5p-simple-time, .h5p-current, span.human-time").text();
//  				var newvalue= $('.h5p-control, .h5p-simple-time, .h5p-current, span.human-time').text();
  				var valuetime1= $(".h5p-controls-right .h5p-control .h5p-time .h5p-current .human-time").text();
  				var newvalue1= $('.h5p-controls-right .h5p-control .h5p-time .h5p-current .human-time').text();
//    				console.log(" click notes"+newvalue);
//    				var y =$('.human-time').html();
//  				console.log("first"+valuetime);console.log("second"+newvalue);
  				console.log("first"+valuetime1);console.log("second"+newvalue1);
//  				alert("hi");
    			});
    		}, 0500);
    	});
    }