-
Notifications
You must be signed in to change notification settings - Fork 78
/
script.js
28 lines (25 loc) · 1.06 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$(window).on('load',
function () {
// CODE HIGHLY INSPIRED FROM ELCENTRA OAUTH2 PLUGIN: https://moodle.org/plugins/view/auth_elcentra
if ($("#auth_custom_location").length > 0) {
$("#auth_custom_location").append(buttonsCodeOauth2);
} else {
var formObj = $("input[name='username']").closest("form");
if (formObj.length > 0) {
$(formObj).each(function (i, formItem) {
var username = $(formItem).find("input[name='username']").val();
var password = $(formItem).find("input[name='password']").val();
if(username !== "guest" || password !== "guest") {
$(formItem).append(buttonsCodeOauth2);
}
});
}
}
// CODE FOR THE BUTTONS ANIMATION
$(".social-button").hover(function () {
$(this).children(".button-inside").addClass('full');
}, function() {
$(this).children(".button-inside").removeClass('full');
});
}
)