"; generatorselection();} function setfacetoJOHNNYDEPP(){ document.getElementById("circselected").innerHTML = "1"; document.getElementById("faceselected").innerHTML = "JOHNNYDEPP"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoMISTERBEAN(){ document.getElementById("circselected").innerHTML = "2"; document.getElementById("faceselected").innerHTML = "MISTERBEAN"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoEMMAWATSON(){ document.getElementById("circselected").innerHTML = "3"; document.getElementById("faceselected").innerHTML = "EMMAWATSON"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoMAI(){ document.getElementById("circselected").innerHTML = "4"; document.getElementById("faceselected").innerHTML = "MAI"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoRIHANNA(){ document.getElementById("circselected").innerHTML = "5"; document.getElementById("faceselected").innerHTML = "RIHANNA"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoALEXANDRADADDARIOT(){ document.getElementById("circselected").innerHTML = "6"; document.getElementById("faceselected").innerHTML = "ALEXANDRADADDARIOT"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoRAI(){ document.getElementById("circselected").innerHTML = "7"; document.getElementById("faceselected").innerHTML = "RAI"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoMORGANFREEMAN(){ document.getElementById("circselected").innerHTML = "8"; document.getElementById("faceselected").innerHTML = "MORGANFREEMAN"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoGEORGESCLOONEY(){ document.getElementById("circselected").innerHTML = "9"; document.getElementById("faceselected").innerHTML = "GEORGESCLOONEY"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoMEGANFOX(){ document.getElementById("circselected").innerHTML = "10"; document.getElementById("faceselected").innerHTML = "MEGANFOX"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();}function setfacetoELSAFROZEN(){ document.getElementById("circselected").innerHTML = "11"; document.getElementById("faceselected").innerHTML = "ELSAFROZEN"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();} function setfacetoMICHELLEOBAMA(){ document.getElementById("circselected").innerHTML = "12"; document.getElementById("faceselected").innerHTML = "MICHELLEOBAMA"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; document.getElementById("selectaface").innerHTML = "
"; generatorselection();}/* Set the video choice*/ function setvideotoEXAMPLE1_Trump(){ document.getElementById("videoselected").innerHTML = "Example1-Trump"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample2_Frozen1(){ document.getElementById("videoselected").innerHTML = "Example2-Frozen1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample3_ironman1(){ document.getElementById("videoselected").innerHTML = "Example3-ironman1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample4_Amberheard1(){ document.getElementById("videoselected").innerHTML = "Example4-Amberheard1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample5_squidgame1(){ document.getElementById("videoselected").innerHTML = "Example5-squidgame1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample6_sleepyhollow(){ document.getElementById("videoselected").innerHTML = "Example6-sleepyhollow"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample7_rihanna1(){ document.getElementById("videoselected").innerHTML = "Example7-rihanna1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function setvideotoExample8_emmawatson1(){ document.getElementById("videoselected").innerHTML = "Example8-emmawatson1"; var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; generatorselection();} function generatorselection() { var circselected = document.getElementById("circselected").innerHTML; var faceselected = document.getElementById("faceselected").innerHTML; var videoselected = document.getElementById("videoselected").innerHTML; if (videoselected != "none" & faceselected != "none"){ document.getElementById("selecttextdiv").style.zIndex = "1"; var videotodisplay = '
'; document.getElementById('videodeepfake').innerHTML=videotodisplay; document.getElementById('previewvideo').style.display= 'none'; document.getElementById('previewface').style.display= 'none'; window.scrollTo(0, 0) } else{ } for (let i = 0; i < 100; i++) { try { // code that throws the error document.getElementById('circ'+i).style.opacity='0'; document.getElementById('circ' + circselected).style.opacity='1'; } catch (e) { // exit the loop break; }; document.getElementById('circ'+i).style.opacity='0'; document.getElementById('circ' + circselected).style.opacity='1'; } }
>
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample1-Trump").innerHTML = "
"; setvideotoEXAMPLE1_Trump(); }); document.getElementById('gifgeneratorExample2-Frozen1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0) hideotherlogos(); document.getElementById("gifgeneratorExample2-Frozen1").innerHTML = "
"; setvideotoExample2_Frozen1(); }); document.getElementById('gifgeneratorExample2DESKTOP-Frozen1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0) hideotherlogos(); document.getElementById("gifgeneratorExample2DESKTOP-Frozen1").innerHTML = "
"; setvideotoExample2_Frozen1(); }); document.getElementById('gifgeneratorExample3-ironman1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0) hideotherlogos(); document.getElementById("gifgeneratorExample3-ironman1").innerHTML = "
"; setvideotoExample3_ironman1(); }); document.getElementById('gifgeneratorExample4-Amberheard1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample4-Amberheard1").innerHTML = "
"; setvideotoExample4_Amberheard1(); }); document.getElementById('gifgeneratorExample5-squidgame1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample5-squidgame1").innerHTML = "
"; setvideotoExample5_squidgame1(); }); document.getElementById('gifgeneratorExample5DESKTOP-squidgame1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample5DESKTOP-squidgame1").innerHTML = "
"; setvideotoExample5_squidgame1(); }); document.getElementById('gifgeneratorExample6-sleepyhollow').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample6-sleepyhollow").innerHTML = "
"; setvideotoExample6_sleepyhollow(); }); document.getElementById('gifgeneratorExample6DESKTOP-sleepyhollow').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample6DESKTOP-sleepyhollow").innerHTML = "
"; setvideotoExample6_sleepyhollow(); }); document.getElementById('gifgeneratorExample7-rihanna1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample7-rihanna1").innerHTML = "
"; setvideotoExample7_rihanna1(); }); document.getElementById('gifgeneratorExample8-emmawatson1').addEventListener('click', function () { document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample8-emmawatson1").innerHTML = "
"; setvideotoExample8_emmawatson1(); }); document.getElementById('gifgeneratorExample8DESKTOP-emmawatson1').addEventListener('click', function (){ document.getElementById("selectavideo").innerHTML = "
"; window.scrollTo(0, 0); hideotherlogos(); document.getElementById("gifgeneratorExample8DESKTOP-emmawatson1").innerHTML = "
"; setvideotoExample8_emmawatson1(); });