1// this worked for me
2https://www.workversatile.com/jquery-to-javascript-converter/
1//it works for small pieces of code, you still have to do most by hand. Just like you do at night
2https://properprogramming.com/tools/jquery-to-javascript-converter/
1 $(document).ready(function(){
2
3
4 var $content, $modal, $apnData, $modalCon;
5
6 $content = $(".min");
7
8
9 //To fire modal
10 $(".mdlFire").click(function(e){
11
12 e.preventDefault();
13
14 var $id = $(this).attr("data-target");
15
16 $($id).modal({backdrop: false, keyboard: false});
17
18 });
19
20
21 $(".modalMinimize").on("click", function(){
22
23 $modalCon = $(this).closest(".mymodal").attr("id");
24
25 $apnData = $(this).closest(".mymodal");
26
27 $modal = "#" + $modalCon;
28
29 $(".modal-backdrop").addClass("display-none");
30
31 $($modal).toggleClass("min");
32
33 if ( $($modal).hasClass("min") ){
34
35 $(".minmaxCon").append($apnData);
36
37 $(this).find("i").toggleClass( 'fa-minus').toggleClass( 'fa-clone');
38
39 }
40 else {
41
42 $(".container").append($apnData);
43
44 $(this).find("i").toggleClass( 'fa-clone').toggleClass( 'fa-minus');
45
46 };
47
48 });
49
50 $("button[data-dismiss='modal']").click(function(){
51
52 $(this).closest(".mymodal").removeClass("min");
53
54 $(".container").removeClass($apnData);
55
56 $(this).next('.modalMinimize').find("i").removeClass('fa fa-clone').addClass( 'fa fa-minus');
57
58 });
59
60 });