Measure of Angles in a Triangle Worksheet with Colorful Triangle Snake (2024)

`; this._targetInput.insertAdjacentHTML('afterend', dHtm); this._targetInput.nextElementSibling.insertAdjacentElement('beforeend', this._targetInput); } this._newVoiceId = `v_searchByVoice_${this._instanceIndex}`; this._voiceTextElmId = `v_voiceTxtEl_${this._instanceIndex}`; var newVoice = document.getElementById(this._newVoiceId); if ((this._targetInput || this._targetInputList) && !newVoice) { let sHtm = ` `; if (!this._textableInstance) { this._targetInput.insertAdjacentHTML('afterend', sHtm); this._targetInput.parentElement.classList.add('v_hasVoiceSearch'); } else { if (this._targetSelectionElm.parentElement === null) { var summernoteToolBar = document.getElementById('summernote-disconnected-toolbar'); if (summernoteToolBar) { var rowTwo = summernoteToolBar.getElementsByClassName('note-row2')[0]; this._targetSelectionElm = rowTwo; } } this._targetSelectionElm.insertAdjacentHTML('beforeend', sHtm); this._targetSelectionElm.classList.add('v_hasVoiceSearch'); } } }; SpeechToTextHelper.prototype.SetupRecognition = function () { let finalTranscript = ''; let voiceTutElm = document.getElementById(this._voiceTextElmId); let selectedInstanceIndex = this._instanceIndex; this._recState.recognition = new this._speechRecognition(); this._recState.recognition.continuous = false; //this._recState.recognition.lang = 'en-US'; this._recState.recognition.interimResults = true; if ((this._targetInput || this._targetInputList) && voiceTutElm) { this._recState.recognition.onresult = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; let interimTranscript = ""; for (let i = e.resultIndex; i < e.results.length; i += 1) { const { transcript } = e.results[i][0]; if (e.results[i].isFinal) { finalTranscript += transcript; } else { interimTranscript += transcript; } } thisPointer._recState.finalSpeechVal = `${finalTranscript} ${interimTranscript}`.trim(); if (!thisPointer._textableInstance) { thisPointer._targetInput.value = thisPointer._recState.finalSpeechVal; } else { for (var i = 0; i < thisPointer._targetInputList.length; i++) { thisPointer._targetInputList[i].innerText = thisPointer._recState.finalSpeechVal; } } voiceTutElm.innerText = thisPointer._recState.finalSpeechVal; }; this._recState.recognition.onspeechstart = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.finalSpeechVal = ''; finalTranscript = ''; }; this._recState.recognition.onspeechend = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.recognition.stop(); }; this._recState.recognition.onend = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; var voiceTutElm = document.getElementById(thisPointer._voiceTextElmId); if (thisPointer._recState.finalSpeechVal.length >= 2) { if (!thisPointer._textableInstance) { if (thisPointer._targetInput.nodeName.toLowerCase() !== 'input') { thisPointer._targetInput.innerText = thisPointer._recState.finalSpeechVal; } else { thisPointer._targetInput.value = thisPointer._recState.finalSpeechVal; } thisPointer._targetInput.dispatchEvent(new Event('change')); } else { for (var i = 0; i < thisPointer._targetInputList.length; i++) { var inputElm = thisPointer._targetInputList[i]; if (inputElm.nodeName.toLowerCase() !== 'input') { var selectedFontElm = document.getElementsByClassName('note-current-fontname')[0]; var selectedFontSize = document.getElementsByClassName('note-current-fontsize')[0]; inputElm.innerText = thisPointer._recState.finalSpeechVal; if (selectedFontElm) { inputElm.style.fontFamily = selectedFontElm.style.fontFamily; } if (selectedFontSize) { inputElm.style.fontSize = `${selectedFontSize.innerText}px`; } } else { inputElm.value = thisPointer._recState.finalSpeechVal; } inputElm.dispatchEvent(new Event('change')); } } if (thisPointer._targetActionElm) { thisPointer._targetActionElm.click(); } document.body.classList.remove('v_listening'); } if (!thisPointer._recState.finalSpeechVal.length) { voiceTutElm.innerText = thisPointer._recState.noSpeech; thisPointer._listeningTimeout = setTimeout(function () { document.body.classList.remove('v_listening'); }, 1500); } }; this._recState.recognition.onerror = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.recognition.stop(); console.error('Speech recognition error:', e.error); if (e.error.includes('not-allowed')) { document.body.classList.add('v_speechNotAllowed'); } throw e.error; }; } }; SpeechToTextHelper.prototype.ShowTutorialToolTip = function () { var elm = document.getElementById(`v_voiceInstructionsTip_${this._instanceIndex}`); elm.style.display = 'flex'; }; SpeechToTextHelper.prototype.HideTutorialToolTip = function () { var elm = document.getElementById(`v_voiceInstructionsTip_${this._instanceIndex}`); if (elm) { elm.style.display = 'none'; sessionStorage.setItem(`v_isVoiceTutorialViewed_${this._instanceIndex}`, 'true'); } } SpeechToTextHelper.prototype.AddEventListeners = function () { let selectedInstanceIndex = this._instanceIndex; var speechButton = document.getElementById(this._newVoiceId); this._targetSelectionElm.addEventListener('mouseover', function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.CheckForTutorial(); }); speechButton.addEventListener('click', function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; if (thisPointer._listeningTimeout) { clearTimeout(thisPointer._listeningTimeout); } thisPointer._recState.finalSpeechVal = ''; let tutorialTxt = document.getElementById(thisPointer._voiceTextElmId); let tutorialInput = thisPointer._targetInput; thisPointer.HideTutorialToolTip(); if (thisPointer._recState.recognition != null && !document.body.classList.contains('v_listening')) { document.body.classList.add('v_listening'); if (tutorialTxt) { tutorialTxt.innerText = thisPointer._recState.listening; } if (tutorialInput) { if (tutorialInput.nodeName.toLowerCase() === 'input') { tutorialInput.setAttribute('placeholder', thisPointer._recState.listening); } else { tutorialInput.innerText = thisPointer._recState.listening; } } thisPointer._recState.recognition.start(); } else { document.body.classList.remove('v_listening'); thisPointer._recState.recognition.stop(); } }); var toolTipCloser = document.getElementById(`v_toolTipCloser_${selectedInstanceIndex}`); toolTipCloser.addEventListener('click', function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.HideTutorialToolTip(); }); }; SpeechToTextHelper.prototype.CheckForTutorial = function () { let selectedInstanceIndex = this._instanceIndex; let isTutorialViewed = sessionStorage.getItem(`v_isVoiceTutorialViewed_${this._instanceIndex}`); if (isTutorialViewed == null || isTutorialViewed === 'false') { this.ShowTutorialToolTip(); setTimeout(function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.HideTutorialToolTip(); }, 5000); } };
`; this._targetInput.insertAdjacentHTML('afterend', dHtm); this._targetInput.nextElementSibling.insertAdjacentElement('beforeend', this._targetInput); } this._newVoiceId = `v_searchByVoice_${this._instanceIndex}`; this._voiceTextElmId = `v_voiceTxtEl_${this._instanceIndex}`; var newVoice = document.getElementById(this._newVoiceId); if ((this._targetInput || this._targetInputList) && !newVoice) { let sHtm = ` `; if (!this._textableInstance) { this._targetInput.insertAdjacentHTML('afterend', sHtm); this._targetInput.parentElement.classList.add('v_hasVoiceSearch'); } else { if (this._targetSelectionElm.parentElement === null) { var summernoteToolBar = document.getElementById('summernote-disconnected-toolbar'); if (summernoteToolBar) { var rowTwo = summernoteToolBar.getElementsByClassName('note-row2')[0]; this._targetSelectionElm = rowTwo; } } this._targetSelectionElm.insertAdjacentHTML('beforeend', sHtm); this._targetSelectionElm.classList.add('v_hasVoiceSearch'); } } }; SpeechToTextHelper.prototype.SetupRecognition = function () { let finalTranscript = ''; let voiceTutElm = document.getElementById(this._voiceTextElmId); let selectedInstanceIndex = this._instanceIndex; this._recState.recognition = new this._speechRecognition(); this._recState.recognition.continuous = false; //this._recState.recognition.lang = 'en-US'; this._recState.recognition.interimResults = true; if ((this._targetInput || this._targetInputList) && voiceTutElm) { this._recState.recognition.onresult = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; let interimTranscript = ""; for (let i = e.resultIndex; i < e.results.length; i += 1) { const { transcript } = e.results[i][0]; if (e.results[i].isFinal) { finalTranscript += transcript; } else { interimTranscript += transcript; } } thisPointer._recState.finalSpeechVal = `${finalTranscript} ${interimTranscript}`.trim(); if (!thisPointer._textableInstance) { thisPointer._targetInput.value = thisPointer._recState.finalSpeechVal; } else { for (var i = 0; i < thisPointer._targetInputList.length; i++) { thisPointer._targetInputList[i].innerText = thisPointer._recState.finalSpeechVal; } } voiceTutElm.innerText = thisPointer._recState.finalSpeechVal; }; this._recState.recognition.onspeechstart = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.finalSpeechVal = ''; finalTranscript = ''; }; this._recState.recognition.onspeechend = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.recognition.stop(); }; this._recState.recognition.onend = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; var voiceTutElm = document.getElementById(thisPointer._voiceTextElmId); if (thisPointer._recState.finalSpeechVal.length >= 2) { if (!thisPointer._textableInstance) { if (thisPointer._targetInput.nodeName.toLowerCase() !== 'input') { thisPointer._targetInput.innerText = thisPointer._recState.finalSpeechVal; } else { thisPointer._targetInput.value = thisPointer._recState.finalSpeechVal; } thisPointer._targetInput.dispatchEvent(new Event('change')); } else { for (var i = 0; i < thisPointer._targetInputList.length; i++) { var inputElm = thisPointer._targetInputList[i]; if (inputElm.nodeName.toLowerCase() !== 'input') { var selectedFontElm = document.getElementsByClassName('note-current-fontname')[0]; var selectedFontSize = document.getElementsByClassName('note-current-fontsize')[0]; inputElm.innerText = thisPointer._recState.finalSpeechVal; if (selectedFontElm) { inputElm.style.fontFamily = selectedFontElm.style.fontFamily; } if (selectedFontSize) { inputElm.style.fontSize = `${selectedFontSize.innerText}px`; } } else { inputElm.value = thisPointer._recState.finalSpeechVal; } inputElm.dispatchEvent(new Event('change')); } } if (thisPointer._targetActionElm) { thisPointer._targetActionElm.click(); } document.body.classList.remove('v_listening'); } if (!thisPointer._recState.finalSpeechVal.length) { voiceTutElm.innerText = thisPointer._recState.noSpeech; thisPointer._listeningTimeout = setTimeout(function () { document.body.classList.remove('v_listening'); }, 1500); } }; this._recState.recognition.onerror = function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer._recState.recognition.stop(); console.error('Speech recognition error:', e.error); if (e.error.includes('not-allowed')) { document.body.classList.add('v_speechNotAllowed'); } throw e.error; }; } }; SpeechToTextHelper.prototype.ShowTutorialToolTip = function () { var elm = document.getElementById(`v_voiceInstructionsTip_${this._instanceIndex}`); elm.style.display = 'flex'; }; SpeechToTextHelper.prototype.HideTutorialToolTip = function () { var elm = document.getElementById(`v_voiceInstructionsTip_${this._instanceIndex}`); if (elm) { elm.style.display = 'none'; sessionStorage.setItem(`v_isVoiceTutorialViewed_${this._instanceIndex}`, 'true'); } } SpeechToTextHelper.prototype.AddEventListeners = function () { let selectedInstanceIndex = this._instanceIndex; var speechButton = document.getElementById(this._newVoiceId); this._targetSelectionElm.addEventListener('mouseover', function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.CheckForTutorial(); }); speechButton.addEventListener('click', function (e) { let thisPointer = speechInstances[selectedInstanceIndex]; if (thisPointer._listeningTimeout) { clearTimeout(thisPointer._listeningTimeout); } thisPointer._recState.finalSpeechVal = ''; let tutorialTxt = document.getElementById(thisPointer._voiceTextElmId); let tutorialInput = thisPointer._targetInput; thisPointer.HideTutorialToolTip(); if (thisPointer._recState.recognition != null && !document.body.classList.contains('v_listening')) { document.body.classList.add('v_listening'); if (tutorialTxt) { tutorialTxt.innerText = thisPointer._recState.listening; } if (tutorialInput) { if (tutorialInput.nodeName.toLowerCase() === 'input') { tutorialInput.setAttribute('placeholder', thisPointer._recState.listening); } else { tutorialInput.innerText = thisPointer._recState.listening; } } thisPointer._recState.recognition.start(); } else { document.body.classList.remove('v_listening'); thisPointer._recState.recognition.stop(); } }); var toolTipCloser = document.getElementById(`v_toolTipCloser_${selectedInstanceIndex}`); toolTipCloser.addEventListener('click', function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.HideTutorialToolTip(); }); }; SpeechToTextHelper.prototype.CheckForTutorial = function () { let selectedInstanceIndex = this._instanceIndex; let isTutorialViewed = sessionStorage.getItem(`v_isVoiceTutorialViewed_${this._instanceIndex}`); if (isTutorialViewed == null || isTutorialViewed === 'false') { this.ShowTutorialToolTip(); setTimeout(function () { let thisPointer = speechInstances[selectedInstanceIndex]; thisPointer.HideTutorialToolTip(); }, 5000); } };
  • My Storyboards
  • View Lesson Plan

    Copy this Storyboard

    '; var rightArrowHTML = '

    Measure of Angles in a Triangle Worksheet with Colorful Triangle Snake (5)

    '; cellRow.className = 'row'; cellPreviewImages.className = 'col-12'; cellPreviewImages.style.order = '2'; cellPreviewImages.classList.add('verticalPreviewWidth'); largePreviewContainer.className = 'col-10'; largePreviewContainer.insertAdjacentHTML('beforebegin', leftArrowHTML); largePreviewContainer.insertAdjacentHTML('afterend', rightArrowHTML); for (let i = 0; i < sourceRectangles.length; i++) { var cellCol = document.createElement('div'); var cellRect = sourceRectangles[i]; cellCol.className = 'col'; cellCol.innerHTML = svgTemplateString.replace('#use#', sourceSvgText); cellCol.addEventListener('click', function () { SelectCellIndex(i); }); var templateSvg = cellCol.firstElementChild; var cellRectData = { x: cellRect.getAttribute('x'), y: cellRect.getAttribute('y'), width: cellRect.getAttribute('width'), height: cellRect.getAttribute('height') }; var viewBoxString = `${cellRectData.x} ${cellRectData.y} ${(parseFloat(cellRectData.width) + 3)} ${(parseFloat(cellRectData.height) + 2)}`; cellRectList.push(cellRectData); templateSvg.setAttribute('viewBox', viewBoxString); templateSvg.classList.add('svgPreviewImage'); templateSvg.classList.add('svgPreviewImageVertical'); templateSvg.id = `previewSvg_cell_${i}`; if (i === 0) { templateSvg.style.height = '99%'; } cellRow.appendChild(cellCol); cellPreviewImages.appendChild(cellRow); if (i === currentCellIndex) { var largePreviewSvg = document.getElementById('largePreviewSvg'); templateSvg.classList.add('active'); largePreviewSvg.setAttribute('viewBox', viewBoxString); } } var newViewStoryboardContainer = document.getElementById('newViewStoryboardContainer'); newViewStoryboardContainer.id = 'newViewStoryboardContainerVertical'; } function ConsolidateRectangles(rectangleList) { var cellRectangles = []; for (var i = 0; i < rectangleList.length; i++) { var rectangle = rectangleList[i]; if (rectangle.id.indexOf('cell_') !== -1) { var newRect = document.createElement('rect'); newRect.id = rectangle.id.split('_')[1]; newRect.setAttribute('x', rectangle.getAttribute('x')); newRect.setAttribute('y', rectangle.getAttribute('y')); newRect.setAttribute('width', rectangle.getAttribute('width')); newRect.setAttribute('height', rectangle.getAttribute('height')); cellRectangles.push(newRect); } } for (var i = 0; i < cellRectangles.length; i++) { var cellRect = cellRectangles[i]; var titleSearch = `title_${cellRect.id}_outer`; var descriptionSearch = `descr_${cellRect.id}_outer`; for (var j = 0; j < rectangleList.length; j++) { var rectangle = rectangleList[j]; if (rectangle.id.indexOf(titleSearch) !== -1) { var cellHeight = cellRect.getAttribute('height'); var rectHeight = rectangle.getAttribute('height'); var newHeight = parseFloat(cellHeight) + parseFloat(rectHeight); cellRect.setAttribute('y', rectangle.getAttribute('y')); cellRect.setAttribute('height', (newHeight + 20).toString()); } else if (rectangle.id.indexOf(descriptionSearch) !== -1) { var cellHeight = cellRect.getAttribute('height'); var rectHeight = rectangle.getAttribute('height'); var newHeight = parseFloat(cellHeight) + parseFloat(rectHeight); cellRect.setAttribute('height', (newHeight + 20).toString()); } } } return cellRectangles; } function MoveButtons() { var newButtonContainer = document.getElementsByClassName('v_copySBTCTAWrapper')[0]; var createStoryboardButton = document.getElementById('vs-under-image-new'); var newButton = document.createElement('a'); if (createStoryboardButton) { newButton.className = createStoryboardButton.className; newButton.href = createStoryboardButton.href; newButton.innerText = createStoryboardButton.innerText; newButton.style.width = '254px'; newButton.style.marginLeft = '20px'; newButtonContainer.insertAdjacentElement('beforeend', newButton); } } function SelectCellIndex(val) { currentCellIndex = val; var previewImages = document.getElementsByClassName('svgPreviewImage'); var largePreviewSvg = document.getElementById('largePreviewSvg'); for (var i = 0; i < cellRectList.length; i++) { if (i === currentCellIndex) { var cellRectData = cellRectList[i]; var viewBoxString = `${cellRectData.x} ${cellRectData.y} ${cellRectData.width} ${cellRectData.height}`; largePreviewSvg.setAttribute('viewBox', viewBoxString); previewImages[i].classList.add('active'); } else { previewImages[i].classList.remove('active'); } } if (!verticalLayoutSelected) { ResizePreviewUI(); } } function LeftArrowClick() { if (currentCellIndex > 0) { currentCellIndex--; } else { currentCellIndex = (cellRectList.length - 1); } SelectCellIndex(currentCellIndex); } function RightArrowClick() { if (currentCellIndex + 1 === cellRectList.length) { currentCellIndex = 0; } else { currentCellIndex++; } SelectCellIndex(currentCellIndex); }

    CREATE A STORYBOARD! Copy

    Measure of Angles in a Triangle Worksheet with Colorful Triangle Snake (6)

    Create your own Storyboard

    Try it for Free!

    Create your own Storyboard

    Try it for Free!

    You can find this storyboard in the following articles and resources:

    Measure of Angles in a Triangle Worksheet with Colorful Triangle Snake (7)

    Triangles Worksheets

    Customize Triangles Worksheets

    Create a Triangles Worksheet with Storyboard That Today!

    Read More

    Check out some of our other templates!


    Graphic Novel Layouts



    Exit Tickets



    Plot Diagram



    Create a Storyboard

    Over 30 Million Storyboards Created

    Create My First Storyboard

    Measure of Angles in a Triangle Worksheet with Colorful Triangle Snake (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Ouida Strosin DO

    Last Updated:

    Views: 5849

    Rating: 4.6 / 5 (56 voted)

    Reviews: 87% of readers found this page helpful

    Author information

    Name: Ouida Strosin DO

    Birthday: 1995-04-27

    Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

    Phone: +8561498978366

    Job: Legacy Manufacturing Specialist

    Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

    Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.