custom-javascript.js
1.73 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import jQuery from 'jquery';
import DataTable from 'datatables.net-bs5';
import "./_resources_list";
import "./_contest";
import "./_member_list";
var a = document.querySelector('.blur-image');
document.addEventListener("DOMContentLoaded", function() {
if (!a) return !1;
var b = a.getAttribute("data-src"),
c = document.querySelector('.full-image'),
img = new Image;
img.src = b;
img.onload = function() {
c.classList.add('image-loaded'),
c.style.backgroundImage = 'linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0) 100%), url(' + b + ')';
};
});
var a1 = document.querySelector('.blur-image');
document.addEventListener("DOMContentLoaded", function() {
if (!a1) return !1;
var b2 = a.getAttribute("data-src"),
c2 = document.querySelector('.full-image-login'),
img2 = new Image;
img2.src = b2;
img2.onload = function() {
c2.classList.add('image-loaded'),
c2.style.backgroundImage = 'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 91%, rgba(0, 0, 0, 0) 100%), url(' + b2 + ')';
};
});
jQuery( document ).ready(function($) {
$('#Modal_Video').on('hidden.bs.modal', function () {
$('#home-video').get(0).pause();
$('#home-video').get(0).currentTime = 0;
});
$('#Modal_Video').on('show.bs.modal', function () {
$('#home-video').get(0).currentTime = 0;
$('#home-video').get(0).play();
});
$(document).mouseup(function(e){
var container = $("#Modal_Video");
if(!container.is(e.target) && container.hasClass('show') && container.has(e.target).length === 0){
container.removeClass('show');
}
});
});