Files
Gainsight/Custom_Templates/customer_templates/DoubleVerify University/custom_javascript_v3.html.liquid

858 lines
27 KiB
Plaintext
Raw Normal View History

<script>
$('header[data-test=lx-v3-header]').addClass('school-website-header uk-z-4 course-activities-header');
$('header[data-test=lx-v3-header]').removeClass('ewNlQR');
$('header[data-test=lx-v3-header]').html('<div class="uk-container-expand"><nav class="uk-navbar" data-behavior="dropdown"><a href="/" class="uk-brand"><img src="https://cdn.filestackcontent.com/security=policy:eyJleHBpcnkiOjQ4MjUzNDU5MDUsImNhbGwiOlsicmVhZCIsImNvbnZlcnQiLCJzdG9yZSIsInBpY2siLCJyZW1vdmUiXX0=,signature:e9774744380e18096fdbbafd5b0741a424bd52920dc99e2eabbbd516959598f9/TT5KfRwTh6BnWF8uV7eB" alt="DoubleVerify University"></a><div class="uk-navbar-flip"><ul class="uk-navbar-nav uk-hidden-small"><li><a href="#" class="uk-button uk-button-primary get-in-touch-btn" id="get-in-touch">GET IN TOUCH</a></li><li><a href="/learners/sign_out" class="profile-icon" data-method="delete" rel="nofollow"> <span>Log Out</span></a></li></ul><div class="uk-visible-small"><a href="#mobile-nav" class="mobile-navbar-toggle uk-navbar-toggle" data-uk-offcanvas=""><span></span></a></div></div></nav></div>');
$('header[data-test=lx-v3-header]').after('<div class="overlay highlight-overlay" id="overlay"><div class="overlay-table"><div class="overlay-cell"><div class="overlay-container"><button class="overlay-close button-close" id="close-btn" type="button">Close Overlay</button><div class="overlay-main-content"><p class="overlay-description">For any questions about DV University or DoubleVerify, please contact <a href="mailto:dvusupport@doubleverify.com">dvusupport@doubleverify.com</a></p></div></div></div></div></div>');
/*
$('header[data-test=lx-v3-header]').after('<div id="mobile-nav" class="uk-offcanvas" aria-hidden="true"><div class="uk-offcanvas-bar uk-offcanvas-bar-flip" mode="push"><ul class="uk-nav uk-nav-offcanvas" data-uk-nav=""><li><a href="#" class="uk-button uk-button-primary get-in-touch-btn" id="get-in-touch">GET IN TOUCH</a></li><li><a href="/learners/sign_out" class="profile-icon" data-method="delete" rel="nofollow"><img src="http://dvtemp.doubleverify.com/wp-content/uploads/2020/09/header-profile-icon.svg" alt="Khuram Noman"> <span>Log Out</span></a></li></ul></div></div>');
*/
$('header[data-test=lx-v3-header]').after('<div id="mobile-nav" class="uk-offcanvas" aria-hidden="true"><div class="uk-offcanvas-bar uk-offcanvas-bar-flip" mode="push"><ul class="uk-nav uk-nav-offcanvas" data-uk-nav=""><li><a href="/learning_paths">Discover Learning Paths</a></li><li><a href="/my_dashboard">My Dashboard</a></li><li><a href="/account/edit">My Profile</a></li><li class="uk-nav-divider"></li><li><a href="/learners/sign_out" data-method="delete" rel="nofollow">Log Out</a></li></ul></div></div>');
$('#service_learning_root .mobile-navbar-toggle').click(function(e){
e.preventDefault();
$('#mobile-nav').toggleClass('uk-active');
$('.uk-offcanvas-bar').toggleClass('uk-offcanvas-bar-show');
});
var closebtn = document.getElementById('close-btn');
var overlay = document.getElementById('overlay');
var getin_touch = document.getElementById('get-in-touch');
getin_touch.onclick = function(){
overlay.classList.add('active');
return false;
}
closebtn.onclick = function(){
overlay.classList.remove('active');
}
$('footer.Main-h8th5y-2 .NavigationWrapper-spz2cx-3 nav a').remove();
$('footer.Main-h8th5y-2 .NavigationWrapper-spz2cx-3 nav').prepend('<a class="LinkContainer-sc-1vqzw4y-3 iERBQs" data-test="back-button" href="/my_courses"><i class="chevron chevron--left far fa-chevron-left"></i><span class="Label-sc-1vqzw4y-0 lnSSzK">Back</span></a>');
</script>
<style>
#service_learning_root #mobile-nav {
width: 275px;
right: auto;
display: block;
transform: translateX(-300px);
transition: 500ms;
z-index: 999999;
}
#service_learning_root .uk-navbar-flip {
position: absolute;
top: 50%;
right: 15px;
transform: translateY(-50%);
}
#service_learning_root .uk-navbar-toggle {
position: absolute;
top: 50%;
right: 0;
height: 20px;
width: 24px;
transform: translateY(-50%);
}
#service_learning_root .uk-navbar-toggle span {
width: 100%;
height: 3px;
position: absolute;
top: 50%;
left: 0;
transform: translateY(-50%);
background: #000;
perspective: 1px;
}
#service_learning_root .uk-navbar-toggle:after,
#service_learning_root .uk-navbar-toggle:before {
position: absolute;
display: block;
left: 0;
width: 100%;
height: 3px;
background: #000;
content: "";
transition-duration: 0.3s, 0.3s;
transition-delay: 0.15s, 0s;
}
#service_learning_root .uk-navbar-toggle:after {
top: 0;
transition-property: top, transform;
-webkit-transition-property: top, transform;
-ms-transition-property: top, transform;
}
#service_learning_root .uk-navbar-toggle:before {
bottom: 0;
transition-property: bottom, transform;
-webkit-transition-property: bottom, transform;
-ms-transition-property: bottom, transform;
}
#service_learning_root .uk-offcanvas.uk-active {
transform: translateX(0px) !important;
}
#service_learning_root .uk-offcanvas.uk-active .uk-offcanvas-bar.uk-offcanvas-bar-show {
-webkit-transform: translateX(0%);
transform: translateX(0%);
}
#service_learning_root .uk-nav {
list-style: none;
margin: 0;
padding-left: 0;
}
#service_learning_root .uk-nav-offcanvas>li>a {
display: block;
text-decoration: none;
}
#service_learning_root .uk-nav-offcanvas .uk-nav-divider {
border-top: 1px solid #1a1a1a;
margin: 8px 15px;
}
.school-website-header .uk-brand {
background: url(https://doubleverify.com/wp-content/uploads/2020/11/DV_University_logo.svg) 0 center no-repeat;
background-size: contain;
display: inline-block;
}
.school-website-header .uk-brand img {
opacity: 0;
}
.iERBQs {
-webkit-box-align: center;
align-items: center;
background-color: transparent;
border-width: 0px 0px 0px 1px;
border-top-style: initial;
border-right-style: initial;
border-bottom-style: initial;
border-top-color: initial;
border-right-color: initial;
border-bottom-color: initial;
border-image: initial;
border-left-style: solid;
border-left-color: rgb(229, 231, 235);
color: rgb(149, 45, 152);
cursor: pointer;
display: flex;
font-size: 11px;
font-weight: 400;
-webkit-box-pack: center;
justify-content: center;
letter-spacing: 1px;
line-height: 22px;
outline: 0px;
text-decoration: none;
text-transform: uppercase;
transition: color 0.3s ease 0s;
}
.far {
font-family: 'Font Awesome 5 Pro';
font-weight: 400;
-webkit-font-smoothing: antialiased;
display: inline-block;
font-style: normal;
font-variant: normal;
text-rendering: auto;
line-height: 1;
}
.iERBQs .chevron {
transition: transform 0.3s ease 0s;
}
.iERBQs .chevron--left {
margin: 0px 15px 0px 0px;
}
.lnSSzK {
padding-top: 2px;
}
@media screen and (max-width: 767px) {
#service_learning_root ul.uk-navbar-nav.uk-hidden-small {
display: none !important;
}
#service_learning_root .lkYzM .IframeContainer-ljslru-1 {
top: 81px;
}
}
@media screen and (min-width: 576px){
.iERBQs {
height: 100%;
min-width: 150px;
padding: 15px 35px;
}
}
</style>
<!-- SPANISH COURSES -->
<style>
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f a[data-test="exit-button"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="your-answers-row"]
strong,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="correct-answers-row"]
strong {
visibility: hidden;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f .hjOcEf,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f div[data-test="correct-answers-row"] strong,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f a[data-test="navigation-exit-button"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f button[data-test="retake-button"] span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f .ikqwMI,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f a[data-test="back-to-incomplete-activity"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f a[data-test="back-button"] span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="disabled-next-question-button"]
span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="next-question-button"]
span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="continue-button"]
span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="disabled-continue-button"]
span,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="course-progress"]
.jjvmkA,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="go-back-to-course-button"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="primary-button"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f h2[data-test="summary-headline"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f div[data-test="summary-title"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f div[data-test="summary-subtitle"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="toggle-possible-answers"],
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="your-answers-row"]
strong {
text-indent: -99999px;
line-height: 0;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f a[data-test="back-to-incomplete-activity"]::after
{
text-indent: 0;
display: block;
content: "Volver a la actividad incompleta";
line-height: 12px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f button[data-test="retake-button"] span::after
{
text-indent: 0;
display: block;
content: "Repetir cuestionario";
line-height: 12px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f .hjOcEf::after {
text-indent: 0;
display: block;
content: "Tabla de contenido";
line-height: 36px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f .ikqwMI::after {
text-indent: 0;
display: block;
content: "Lista de actividades de este curso";
line-height: 36px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="back-button"]
span::after {
text-indent: 0;
display: block;
content: "Atrás";
line-height: 36px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="disabled-next-question-button"]
span::after,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="next-question-button"]
span::after {
text-indent: 0;
display: block;
content: "Próxima pregunta";
line-height: 30px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="continue-button"]
span::after,
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="disabled-continue-button"]
span::after {
text-indent: 0;
display: block;
content: "Continuar";
line-height: 30px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="navigation-exit-button"]::after {
text-indent: 0;
display: block;
content: "Salida";
line-height: 30px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="exit-button"]::after {
text-indent: 0;
display: block;
content: "Volver a Mis cursos";
line-height: 30px;
visibility: initial;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="course-progress"]
.jjvmkA::after {
text-indent: 0;
display: block;
content: "Progreso";
line-height: 12px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="go-back-to-course-button"]::after {
text-indent: 0;
display: block;
content: "Volver al curso";
line-height: 12px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
h2[data-test="summary-headline"]::after {
text-indent: 0;
display: block;
content: "Completaste la prueba";
line-height: 30px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
button[data-test="toggle-possible-answers"]::after {
text-indent: 0;
display: block;
content: "Ve todas las posibles respuestas";
line-height: 30px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="correct-answers-row"]
strong::after {
text-indent: 0;
display: block;
content: "Respuesta correcta:";
line-height: 12px;
visibility: visible;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="your-answers-row"]
strong::after {
text-indent: 0;
visibility: visible;
display: block;
content: "Tu respuesta:";
line-height: 12px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="summary-title"]::after {
text-indent: 0;
display: block;
content: "¡Felicidades!";
line-height: 36px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
div[data-test="summary-subtitle"]::after {
text-indent: 0;
display: block;
content: "Completaste este curso.";
line-height: 36px;
}
.course-f340cd77-1c7b-49c1-b32d-9203a4b3c71f
a[data-test="primary-button"]::after {
text-indent: 0;
display: block;
content: "Ir a Mis cursos";
line-height: 13px;
visibility: initial;
}
</style>
<style>
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f a[data-test="exit-button"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="your-answers-row"]
strong,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="correct-answers-row"]
strong {
visibility: hidden;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f .hjOcEf,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f div[data-test="correct-answers-row"] strong,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f a[data-test="navigation-exit-button"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f button[data-test="retake-button"] span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f .ikqwMI,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f a[data-test="back-to-incomplete-activity"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f a[data-test="back-button"] span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="disabled-next-question-button"]
span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="next-question-button"]
span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="continue-button"]
span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="disabled-continue-button"]
span,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="course-progress"]
.jjvmkA,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="go-back-to-course-button"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="primary-button"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f h2[data-test="summary-headline"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f div[data-test="summary-title"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f div[data-test="summary-subtitle"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="toggle-possible-answers"],
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="your-answers-row"]
strong {
text-indent: -99999px;
line-height: 0;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f a[data-test="back-to-incomplete-activity"]::after
{
text-indent: 0;
display: block;
content: "Volver a la actividad incompleta";
line-height: 12px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f button[data-test="retake-button"] span::after
{
text-indent: 0;
display: block;
content: "Repetir cuestionario";
line-height: 12px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f .hjOcEf::after {
text-indent: 0;
display: block;
content: "Tabla de contenido";
line-height: 36px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f .ikqwMI::after {
text-indent: 0;
display: block;
content: "Lista de actividades de este curso";
line-height: 36px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="back-button"]
span::after {
text-indent: 0;
display: block;
content: "Atrás";
line-height: 36px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="disabled-next-question-button"]
span::after,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="next-question-button"]
span::after {
text-indent: 0;
display: block;
content: "Próxima pregunta";
line-height: 30px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="continue-button"]
span::after,
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="disabled-continue-button"]
span::after {
text-indent: 0;
display: block;
content: "Continuar";
line-height: 30px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="navigation-exit-button"]::after {
text-indent: 0;
display: block;
content: "Salida";
line-height: 30px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="exit-button"]::after {
text-indent: 0;
display: block;
content: "Volver a Mis cursos";
line-height: 30px;
visibility: initial;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="course-progress"]
.jjvmkA::after {
text-indent: 0;
display: block;
content: "Progreso";
line-height: 12px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="go-back-to-course-button"]::after {
text-indent: 0;
display: block;
content: "Volver al curso";
line-height: 12px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
h2[data-test="summary-headline"]::after {
text-indent: 0;
display: block;
content: "Completaste la prueba";
line-height: 30px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
button[data-test="toggle-possible-answers"]::after {
text-indent: 0;
display: block;
content: "Ve todas las posibles respuestas";
line-height: 30px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="correct-answers-row"]
strong::after {
text-indent: 0;
display: block;
content: "Respuesta correcta:";
line-height: 12px;
visibility: visible;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="your-answers-row"]
strong::after {
text-indent: 0;
visibility: visible;
display: block;
content: "Tu respuesta:";
line-height: 12px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="summary-title"]::after {
text-indent: 0;
display: block;
content: "¡Felicidades!";
line-height: 36px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
div[data-test="summary-subtitle"]::after {
text-indent: 0;
display: block;
content: "Completaste este curso.";
line-height: 36px;
}
.course-d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f
a[data-test="primary-button"]::after {
text-indent: 0;
display: block;
content: "Ir a Mis cursos";
line-height: 13px;
visibility: initial;
}
</style>
<style>
.course-6b122483-99db-4a43-a200-153cba1698fd a[data-test="exit-button"],
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="your-answers-row"]
strong,
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="correct-answers-row"]
strong {
visibility: hidden;
}
.course-6b122483-99db-4a43-a200-153cba1698fd .hjOcEf,
.course-6b122483-99db-4a43-a200-153cba1698fd div[data-test="correct-answers-row"] strong,
.course-6b122483-99db-4a43-a200-153cba1698fd a[data-test="navigation-exit-button"],
.course-6b122483-99db-4a43-a200-153cba1698fd button[data-test="retake-button"] span,
.course-6b122483-99db-4a43-a200-153cba1698fd .ikqwMI,
.course-6b122483-99db-4a43-a200-153cba1698fd a[data-test="back-to-incomplete-activity"],
.course-6b122483-99db-4a43-a200-153cba1698fd a[data-test="back-button"] span,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="disabled-next-question-button"]
span,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="next-question-button"]
span,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="continue-button"]
span,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="disabled-continue-button"]
span,
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="course-progress"]
.jjvmkA,
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="go-back-to-course-button"],
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="primary-button"],
.course-6b122483-99db-4a43-a200-153cba1698fd h2[data-test="summary-headline"],
.course-6b122483-99db-4a43-a200-153cba1698fd div[data-test="summary-title"],
.course-6b122483-99db-4a43-a200-153cba1698fd div[data-test="summary-subtitle"],
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="toggle-possible-answers"],
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="your-answers-row"]
strong {
text-indent: -99999px;
line-height: 0;
}
.course-6b122483-99db-4a43-a200-153cba1698fd a[data-test="back-to-incomplete-activity"]::after
{
text-indent: 0;
display: block;
content: "Volver a la actividad incompleta";
line-height: 12px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd button[data-test="retake-button"] span::after
{
text-indent: 0;
display: block;
content: "Repetir cuestionario";
line-height: 12px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd .hjOcEf::after {
text-indent: 0;
display: block;
content: "Tabla de contenido";
line-height: 36px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd .ikqwMI::after {
text-indent: 0;
display: block;
content: "Lista de actividades de este curso";
line-height: 36px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="back-button"]
span::after {
text-indent: 0;
display: block;
content: "Atrás";
line-height: 36px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="disabled-next-question-button"]
span::after,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="next-question-button"]
span::after {
text-indent: 0;
display: block;
content: "Próxima pregunta";
line-height: 30px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="continue-button"]
span::after,
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="disabled-continue-button"]
span::after {
text-indent: 0;
display: block;
content: "Continuar";
line-height: 30px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="navigation-exit-button"]::after {
text-indent: 0;
display: block;
content: "Salida";
line-height: 30px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="exit-button"]::after {
text-indent: 0;
display: block;
content: "Volver a Mis cursos";
line-height: 30px;
visibility: initial;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="course-progress"]
.jjvmkA::after {
text-indent: 0;
display: block;
content: "Progreso";
line-height: 12px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="go-back-to-course-button"]::after {
text-indent: 0;
display: block;
content: "Volver al curso";
line-height: 12px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
h2[data-test="summary-headline"]::after {
text-indent: 0;
display: block;
content: "Completaste la prueba";
line-height: 30px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
button[data-test="toggle-possible-answers"]::after {
text-indent: 0;
display: block;
content: "Ve todas las posibles respuestas";
line-height: 30px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="correct-answers-row"]
strong::after {
text-indent: 0;
display: block;
content: "Respuesta correcta:";
line-height: 12px;
visibility: visible;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="your-answers-row"]
strong::after {
text-indent: 0;
visibility: visible;
display: block;
content: "Tu respuesta:";
line-height: 12px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="summary-title"]::after {
text-indent: 0;
display: block;
content: "¡Felicidades!";
line-height: 36px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
div[data-test="summary-subtitle"]::after {
text-indent: 0;
display: block;
content: "Completaste este curso.";
line-height: 36px;
}
.course-6b122483-99db-4a43-a200-153cba1698fd
a[data-test="primary-button"]::after {
text-indent: 0;
display: block;
content: "Ir a Mis cursos";
line-height: 13px;
visibility: initial;
}
</style>
<!-- END SPANISH -->
<script>
let translated = false;
let currentLanguage = "none";
let courseID = window.location.href.split("/")[4];
let courseMap = {
"f340cd77-1c7b-49c1-b32d-9203a4b3c71f" : "spanish",
"d8ffa29d-ae2b-494a-96fd-8ce24a40bd2f" : "spanish",
"6b122483-99db-4a43-a200-153cba1698fd" : "spanish"
}
</script>
<script>
$(window).bind("load", function() {
if (courseMap[courseID]) {
currentLanguage = courseMap[courseID];
console.log("Current Language: ", currentLanguage);
if ($("p[data-test='summary-paragraph']").length) {
translateContent();
}
listenToDom();
}
function listenToDom() {
const body = document.getElementsByTagName("body")[0];
const config = { attributes: true, childList: true, subtree: true };
const callback = function(mutationsList, observer) {
if ($("p[data-test='summary-paragraph']").length && !translated) {
translateContent();
//observer.disconnect();
} else {
translated = false;
}
};
const observer = new MutationObserver(callback);
observer.observe(body, config);
}
function translateContent() {
if (!translated) {
let summary = $("p[data-test='summary-paragraph']").html();
summary = summary.split(" ");
let translatedSummary;
// You scored 0% with 0 of 2 questions answered correctly.
if (currentLanguage === "spanish") {
//Obtuviste 0% con 0 de 2 preguntas respondidas correctamente.
translatedSummary = `Obtuviste ${summary[2]} con ${summary[4]} de ${summary[6]} preguntas respondidas correctamente.`;
}
else if (currentLanguage === "russian") {
//Вы набрали 0%, если правильно ответили на 0 из 2 вопросов.
translatedSummary = `Вы набрали ${summary[2]}, если правильно ответили на ${summary[4]} из ${summary[6]} вопросов.`;
}
else if (currentLanguage === "japanese") {
// 您在 X 问题中有 X 个回答正确,得分为 X%
translatedSummary = `您在 ${summary[4]} 问题中有 ${summary[6]} 个回答正确,得分为 ${summary[2]}`;
}
else if (currentLanguage === "german") {
//Вы набрали 0%, если правильно ответили на 0 из 2 вопросов.
translatedSummary = `Sie haben ${summary[2]} erreicht und insgesamt ${summary[4]} von ${summary[6]} Fragen richtig beantwortet.`;
}
else if (currentLanguage === "french") {
//Вы набрали 0%, если правильно ответили на 0 из 2 вопросов.
translatedSummary = `Vous avez obtenu un score de ${summary[2]} en répondant correctement à ${summary[4]} questions sur ${summary[6]}.`;
}
$("p[data-test='summary-paragraph']").html(translatedSummary);
translated = true;
}
}
});
</script>