Here is an error I have received when I include some java script

  • teacherjonny
  • Onderwerp Auteur
  • Offline
  • Senior lid
  • Senior lid
Meer
2 jaren 4 maanden geleden #8955 door teacherjonny
Tom: I did change the config.php to true; but without a good result. I'd like t send you the complete script if that is allowed. on this forum. Please let me know if I am violating the forum rules. This code works fine in the web but not in xerte.
JQMIGRATE: Logging is active
jquery-migrate-1.2.1.js:3 JQMIGRATE: jQuery.browser is deprecated
migrateWarn @ jquery-migrate-1.2.1.js:3
jquery-migrate-1.2.1.js:3 console.trace
migrateWarn @ jquery-migrate-1.2.1.js:3
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):8 USER-FILES/10-Ruth-Nottingham/preview.xml is loaded...
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):6 All language definitions loaded...
data.js?version=3.12_(git_v3.12.25-2-g8259c8555):10 Start processing of USER-FILES/10-Ruth-Nottingham/preview.xml
layout.js?version=3.12_(git_v3.12.25-2-g8259c8555):1 Setting up layout...
/xerte/editor/upload.php:1


Failed to load resource: the server responded with a status of 403 ()
/xerte/editor/upload.php:1


Failed to load resource: the server responded with a status of 403 ()

____________________________

html code:
<p>This is the page text
</p>
<p><a href=" essentialhebrew.com/thekey/unit1Block/Unit1_Part3B.html "> www.essentialhebrew.com/thekey/imageskmh/infopop.jpg ');
background-repeat: no-repeat;
cursor: pointer;
margin-right: 35px;
}

.videoButton {
height: 40px;
width: 60px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/videobutton.jpg ');
background-repeat: no-repeat;
cursor: pointer;
margin-right: 15px;
}
.btnListen
{
border-radius: 25px;
border:1px;
background-repeat: no-repeat;
cursor: pointer;
text-align: right;
margin-right: 15px;
vertical-align: top;
font-family: David;
}

.btnPlay {
background-color: red;
/* red */
position: absolute;
right: 310px;
border: none;
color: white;
padding: 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
-webkit-transition-duration: 0.4s;
/* Safari */
transition-duration: 0.4s;
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}

.btnHide {
background-color: blue;
/* blue */
position: absolute;
right: 370px;
border: none;
color: white;
padding: 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
visibility: hidden;
}

.btnStartingPoint {
background-color: yellow;
/* Yellow */
border: none;
color: black;
padding: 8px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
visibility: hidden;

}

.comfooter {
background-color: #DFA958;
border: none;
color: white;
padding: 5px 32px;
text-align: center;
display: inline-block;
font-family: "tamah3";
font-size: 24px;
margin: 4px 2px;
cursor: pointer;
word-spacing: 4px;
letter-spacing: 2px;
}

.mybtn {
height: 24px;
width: 43px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/Blurearphone.jpg ');
background-repeat: no-repeat;
cursor: pointer;
text-align: right;
margin-right: 35px;
padding-right:35px;
vertical-align:top;

}
.mybtnsm {
height: 19px;
width: 37px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/Blurearphone2.jpg ');
background-repeat: no-repeat;
cursor: pointer;
text-align: right;
margin-right: 35px;
padding-right:35px;
vertical-align:top;

}

.btnq {
height: 55px;
width: 60px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/earphonesColor25.jpg ');
background-repeat: no-repeat;
cursor: pointer;
margin-right: 15
}

.btnq2 {
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/earphonesColorSml.jpg ');
background-repeat: no-repeat;
height: 37px;
width: 38px;
cursor: pointer;
text-align: right;
margin-right: 15
}

.btnfast {
height: 22px;
width: 43px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/BlurFast.jpg ');
cursor: pointer;
visibility: hidden;
cursor: pointer;
vertical-align:top;
}

.btnslow {
height: 22px;
width: 43px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/BlurSlow.jpg ');
cursor: pointer;
visibility: hidden;
cursor: pointer;
vertical-align:top;
}

.btnreset {
height: 25px;
width: 30px;
background-image: url(' www.essentialhebrew.com/thekey/imageskmh/resetbtn.jpg ');
visibility: hidden;
cursor: pointer;
vertical-align:top;
}

.btnNext {
background-color: rgb(209, 209, 211);
/* gray
position: absolute;
top: 5440px;*/
right: 370px;
border: none;
color: rgba(0, 0, 0, 0.959);
padding: 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
}
.david {
font-family:'David';
font-size: 22pt;
}

.btnTableContents {
background-color: rgb(209, 209, 211);
/* gray
position: absolute;
top: 5445px;*/
right: 470px;
border: none;
color: rgba(0, 0, 0, 0.959);
padding: 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
}

.btnPrev {
background-color: rgb(209, 209, 211);
/* gray */
position:absolute;
top:60px;
right:350px;

border: none;
color: rgba(10, 10, 10, 0.959);
padding: 4px;
text-align: center;
text-decoration: none;
display: inline-block;
font-family: "Tamah3";
font-size: 20px;
margin: 4px 2px;
cursor: pointer;
border-radius: 8px;
}

.rateDisplay {
visibility: hidden;
vertical-align:top;
font-size:20px;
}
.pageNum {
text-align: center;
border-bottom-style: solid;
border-bottom-color:#C0C0C0;
border-width:3pt;
padding-bottom: 13px;
padding-top:13px;


}
/* for navigation buttons at page bottom */
#navbuttons
{
margin-right:60px;

}
/* for picture positioning */
img.center {
display: block;
margin-left: auto;
margin-right: auto;
}
img.left
{
float:left;
padding:0px 15px 0px 15px;

}
img.right
{
float:right;
padding:25px 50px 0px 50px;

}
/* for tables with hebrew & english */
td.heb
{
text-align: right;
font-family: 'David';
font-size: 22;
direction:rtl;
padding-right: 65;
line-height: 19pt;
width:25%;


}
td.en
{
text-align: left;
font-family: 'Times New Roman';
direction:ltr;
font-size: 18;
line-height: 19pt;
padding-left:40;
width:25%;

}
.heb {
font-family: 'David';
font-size:18px;
font-weight:normal;
direction: rtl;
text-align:right;
padding-right: 100;

}
/* for hiding English transltion */
#div-hidden
{
text-align: left;
font-family:'times new roman';
font-size: 18px;
display:none;
font-size: 20px;
direction:ltr;
margin-left:30px;
margin-right:10px;
line-height: 1.5;
}
.norm
{
font-family:"Times New Roman";
padding-left: 17px;
padding-right: 17px;
font-size:16pt;
line-height: normal;
font-weight:lighter;
direction:ltr;
}
.normheb
{
font-family:"David";
padding-left: 17px;
padding-right: 17px;
font-size:16pt;
line-height:120%;
font-weight:lighter;
direction:rtl;
}
table.twocol
{
width:400px;
table-layout:fixed;
text-align:right;
vertical-align:top;
padding: 2px;

}
table.twocol td.speaker
{

text-align: right;
font-family: 'David';
font-size: large;
direction:rtl;
padding: 20;
line-height: 19pt;
width:50px;
vertical-align: top;
font-weight:400;

}
table.twocol td.speech
{
text-align: right;
font-family: 'David';
font-size: large;
direction:rtl;
padding: 30;
line-height: 19pt;
width:350px;
vertical-align: top;
font-weight:600

}
.heb {
font-family: 'David';
font-size: 24px;
font-weight: 600;
direction:rtl;
text-align: center;
line-height: 18pt;

}
/* for toggle show/hide paragraph */
#showbtn{
background-color:darkseagreen;
height:30px;
color:brown;
font-weight: 200;
font-size:16pt;
}

body {
background-color: lightgray;
}

/*here is the slider css*/
.slidecontainer {
width: 65%;
margin-left:290px;
}

.slider {
-webkit-appearance: none;
width: 65%;
height: 15px;
border-radius: 5px;
background: #42b9f4;
outline: none;
opacity: 0.7;
-webkit-transition: .2s;
transition: opacity .2s;
}

.slider:hover {
opacity: 1;
}

.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 25px;
height: 25px;
border-radius: 50%;
background: #110109;
cursor: pointer;
}

.slider::-moz-range-thumb {
width: 25px;
height: 25px;
border-radius: 50%;
background: #110109;
cursor: pointer;
}
div.item{
direction:rtl;
font-family: 'david';
font-size: 22px;
}
_________________________
javascript: (truncated but there should be enough to run the slider)
var currentAudioPlaying = 1;

var audioData=[["0", "dialog_train.mp3", 1, "4713", "Hebrew"], ["1", "dialog_train.mp3", 1, "4713", "Hebrew"], ["2", "dialog_train.mp3", "4713", "11017", "Hebrew"], ["3", "dialog_train.mp3", "11017", "13404", "Hebrew"], ["4", "dialog_train.mp3", "13404", "19490", "Hebrew"], ["5", "dialog_train.mp3", "19490", "24619", "Hebrew"], ["6", "dialog_train.mp3", "24619", "26997", "Hebrew"], ["7", "dialog_train.mp3", "26997", "38022", "Hebrew"], ["8", "dialog_train.mp3", "38022", "42045", "Hebrew"], ["9", "dialog_train.mp3", "42045", "47462", "Hebrew"], ["10", "dialog_train.mp3", "47462", "60225", "Hebrew"], ["11", "dialog_train.mp3", "60225", "62101", "Hebrew"], ["12", "dialog_train.mp3", "62101", "65254", "Hebrew"], ["13", "dialog_train.mp3", "65254", "76120", "Hebrew"], ["14", "dialog_train.mp3", "76120", "86724", "Hebrew"], ["15", "dialog_train.mp3", "86724", "89698", "Hebrew"], ["16", "dialog_train.mp3", "89867", "94572", "Hebrew"], [17, "", "", "", ""]];
var slider = document.getElementById("myRange");
var outputRate = document.getElementById("playbackSlider");
outputRate.innerHTML = slider.value;

slider.oninput = function() {
var x = document.getElementById("audio" + currentAudioPlaying);

// var temp = x.playbackRate;
x.playbackRate = (this.value / 100);
if (x.playbackRate < .75) {
x.playbackRate = .75;
}
outputRate.innerHTML = this.value;
temp = this.value;
}
var temp= slider.value

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmalimcn
Tijd voor maken pagina: 0.170 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo