attaching course overlay instead of the badge on course complete
authorAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Jul 2018 16:04:57 +0000 (12:04 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Mon, 30 Jul 2018 16:04:57 +0000 (12:04 -0400)
footer.php

index 6c8dc7a..cdb9d15 100644 (file)
                     if( this.response.includes('course_finished') && this.readyState === 4 ){
                                                let data = JSON.parse(this.response);
                         setTimeout(function(){
-                            $(".glm-badge-alert#course-badge").fadeIn("fast");
+                            $("#glm-badge-overlay").fadeIn("fast");
                         }, 1500)
                         setTimeout(function(){
-                            $(".glm-badge-alert#course-badge").fadeOut("slow");
+                            $("#glm-badge-overlay").fadeOut("slow");
                         }, 10000)
                                        }
                                }, false);