TLCMediaDesign
People's Champ
TLCMediaDesign
People's Champ
Activity
‎Apr 19, 2023
08:41 AM
You can execute this JavaScript on your TOC button, this will make the height 400, adjust for your situation:
document.getElementById('toc').style.height = 400 + 'px'; document.getElementById('tocContent').style.height = 400 + 'px';
... View more
‎Apr 12, 2023
10:45 AM
ccClose is the ID of the little X in the top right of the CC, I hide it so my toggle action works.
The background color of the CC is set in a div with the id "ccText"
Scaling doesn't have any effect
... View more
‎Apr 11, 2023
08:47 AM
I don't see that you are toggling a variable to know which on to execute. Or are those two different action attached to 2 different buttons?
... View more
‎Apr 11, 2023
08:43 AM
The issue I am having is it throwing a isInRange is not a function error when the button is pressed a second time. Why are you using your own CC? You could always use the built in CC and move it if that's what you are trying to accomplish.
var cc = document.getElementById( 'cc' ) cc.style.width = '1160px'; cc.style.left = "10px"; cc.style.top = "606px"; cc.style.padding = "0px 10px 0px 10px"; document.getElementById("ccClose").style.display = "none";
... View more
‎Mar 10, 2023
08:02 AM
Where are these action being triggered? When I do something like this, I have the click actions on the first tab of the advanced action on then on the next tab I put the conditional evaluation for what was clicked.
... View more
‎Feb 27, 2023
09:58 AM
I understand that, but it does need to be clicked to score the object.
... View more
‎Feb 24, 2023
06:57 AM
I haven't used cpExtra, but I believe it is just firing the Advanced Action attached to the button, not clicking the button itself. Try executong this JS:
document.getElementById("SmartShape_791c").click();
... View more
‎Jan 26, 2023
12:40 PM
I wouldn't think anything in Captivate would stop it, but you do need server-side scripts to send the variables.
... View more
‎Dec 30, 2022
07:49 AM
There is no parameter called bottom. There is only left and top.
It should be:
let currentY = paresInt(figurePictureC.style.top);
... View more
‎Dec 21, 2022
09:00 AM
1 Upvote
You have a few problems.
1. view_H is always a negative number.
2. You need to get the images current location to move it again
3. you need to get the "C" element
I don't know why you are getting clientWidth unless you are trying to keep the image on the stage, but there are other ways to do this, i.e. don't move left if the objects left is already less than or equal to your increment ro some other boundary.
So say that you are moving 10px at a time, you would need to increment a variable to determine how many times it's moved and how far. YOu can't use the less than sign in the code.
Here is an example to move left and right.
const speed = 10;
window.addEventListener("keydown", Control);
function Control() { let key = event.key; let figurePictureC = document.getElementById('Image_1c'); let currentX = parseInt(figurePictureC.style.left);
if (key == "ArrowRight" ) { figurePictureC.style.left = (currentX + speed) + "px"; } if (key == "ArrowLeft" ) { figurePictureC.style.left = (currentX - speed) + "px"; } }
... View more
‎Dec 12, 2022
04:32 AM
1 Upvote
You need to create and initialize the variable in Captivates variables window. Then set the variable like this:
window.randQuestions_List = [ "What is one important skill that you think everyone should have?",
"There are now 25 hours in a day! How do you spend your extra hour?",
"What was the most fun thing you did last weekend?",
"What is one thing you are looking forward to doing when you retire?",
"What is one of your greatest achievements?",
"If you could change one thing about your job, what would it be?"
];
... View more
‎Nov 22, 2022
05:04 AM
2 Upvotes
If you execute this JavaScript onSledieEnter of the 1st slide it will remove the slider thumb. If you are using bookmarking it will need to be on every slide.
var elem = document.getElementById("playbarSliderThumb"); elem.outerHTML = "";
... View more
‎Nov 21, 2022
05:20 AM
1 Upvote
The only way I know how to do this is to not display the slider thumb.
You can remove the title attribute from the thumb, but the attribute still exists in the outerHTML of the element which is all but impossible to change since it is a string and is always changing.
... View more
‎Nov 17, 2022
10:52 AM
It will resume to the last slide viewed, not the furthest progress. So if you wnt to slide 10 and then back to 5 and exited, it will return to slide 5.
... View more
‎Nov 17, 2022
10:51 AM
No, you leave it as video"
... View more
‎Nov 17, 2022
05:41 AM
2 Upvotes
This script will get the videos and set the start time to 10 seconds for each video and pause it at 15 seconds. Change the 10 and 15 to the start and end times of your videos:
var vids
const myTimeout = setTimeout(getVideo, 1000);
function getVideo() { vids = document.getElementsByTagName("video"); vids[0].currentTime = 10; vids[0].addEventListener("timeupdate", endVideo1) vids[1].currentTime = 10; }
function endVideo1() { if ( vids[0].currentTime > 15 ) { vids[0].pause(); } }
function endVideo2() { f ( vids[1].currentTime > 15 ) { vids[1].pause(); }
... View more
‎Nov 10, 2022
04:52 AM
Sounds to me like you have the Self-Paced Learning option checked in the TOC settings.
I've used quite a few LMSs and none of them ask if you want to contine.
... View more
‎Nov 10, 2022
04:49 AM
1 Upvote
In the html page you just need to preface the script with window.parent.
So you would use a line like this:
window.parent.window.hzdTotalPresents = lPresents;
... View more
‎Nov 08, 2022
05:49 AM
1 Upvote
You can add this to the end of the CPLibraryAll.css file after publishing, change the color and width to what you need:
*:focus { outline: 2px solid #d71ef7 !important; }
... View more
‎Oct 19, 2022
09:17 AM
Just change the name, it is more than likely getting overwritten when Captivate creates it's CPM.js
... View more
‎Oct 12, 2022
07:10 AM
1 Upvote
I don't believe that is something Canvas can do.
... View more
‎Sep 16, 2022
07:25 AM
1 Upvote
Set the display of your button just short of the end of the timeline. I use a "disabled" graphic of the button so it doesn't just disappear.
... View more
‎Sep 12, 2022
07:49 AM
You can make SCORM calls from CP with JavaScript. There really isn't anything in the SCORM data model that would give you a start date. You would be able to tell if the user has accessed the lesson before though. You could execute this Javascript;
var userEntry = SCORM_CallLMSGetValue("cmi.core.entry")
if ( userEntry == "ab-initio")
{
//show pretest
}
else
{
//user has been here before
}
... View more
‎Sep 12, 2022
06:32 AM
Not sure what API you are referring to, but there really isn't anything in the SCORM data model that would give you that information. You would be able to tell if the user has accessed the lesson before though. You could execute this Javascript:
var userEntry = SCORM_CallLMSGetValue("cmi.core.entry")
if ( userEntry == "ab-initio")
{
//show pretest
}
else
{
//user has been here before
}
... View more
‎Aug 19, 2022
08:38 AM
You do have an issue that you are resetting the v_startframe variable with the current frame so it will not back up, it will just stay where it is. If you are setting the v_startframe in an on enter action, you shouldn't need to assign it a value again.
... View more
‎Jul 11, 2022
05:15 AM
You can if the widget is coded to have html5 output as well as a swf.
... View more
‎Jun 29, 2022
09:02 AM
When you open the window you need to put it in a variable, then wirte to the window.
var myWindow = window.open("","Instructions","width=600,height=200,left=900,top=300"); myWindow.document.write("Instructions");
Then to close it:
myWindow.close();
... View more
‎Jun 29, 2022
07:07 AM
to disable use:
window.parent.cp.disable("Button_66");
If you want to call an advanced action, the method I use is to create an invisible button with the advanced action attached to it. Then you can execute this Javascript:
window.parent.cp.runJavascript(cp.model.data[ "ObjectWithActionName" ].oca);
... View more
‎Jun 29, 2022
04:46 AM
All of the code is in the scormdriver.js file at the root of the output.
... View more
‎Jun 29, 2022
04:42 AM
The animation is running in an iframe so you need to access the parent:
window.parent.window.cpAPIInterface.setVariableValue('cpCmndGotoFrame', 300);
... View more