Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
101 righe
4.2 KiB
101 righe
4.2 KiB
2 anni fa
|
! function(i, t) {
|
||
|
"use strict";
|
||
|
if (i(function() {
|
||
|
i('[data-toggle="tooltip"]').tooltip(), i(".tooltip-demo").tooltip({
|
||
|
selector: '[data-toggle="tooltip"]',
|
||
|
container: "body"
|
||
|
}), i('[data-toggle="popover"]').popover(), i(".tooltip-test").tooltip(), i(".popover-test").popover(), i('.bd-example-indeterminate [type="checkbox"]').prop("indeterminate", !0), i('.bd-content [href="#"]').click(function(t) {
|
||
|
t.preventDefault()
|
||
|
}), i(".modal-body").find("input[type=radio]").click(function() {
|
||
|
i(this).closest(".modal-content").find(".modal-footer .btn-primary").removeAttr("disabled")
|
||
|
}), i("#exampleModal").on("show.bs.modal", function(t) {
|
||
|
var e = i(t.relatedTarget).data("whatever"),
|
||
|
o = i(this);
|
||
|
o.find(".modal-title").text("New message to " + e), o.find(".modal-body input").val(e)
|
||
|
}), i(".bd-toggle-animated-progress").on("click", function() {
|
||
|
i(this).siblings(".progress").find(".progress-bar-striped").toggleClass("progress-bar-animated")
|
||
|
}), i(".highlight").each(function() {
|
||
|
i(this).before('<div class="bd-clipboard"><button class="btn-clipboard" title="Copy to clipboard">Copy</button></div>'), i(".btn-clipboard").tooltip().on("mouseleave", function() {
|
||
|
i(this).tooltip("hide")
|
||
|
})
|
||
|
});
|
||
|
var t = new ClipboardJS(".btn-clipboard", {
|
||
|
target: function(t) {
|
||
|
return t.parentNode.nextElementSibling
|
||
|
}
|
||
|
});
|
||
|
t.on("success", function(t) {
|
||
|
i(t.trigger).attr("title", "Copied!").tooltip("_fixTitle").tooltip("show").attr("title", "Copy to clipboard").tooltip("_fixTitle"), t.clearSelection()
|
||
|
}), t.on("error", function(t) {
|
||
|
var e = "Press " + (/Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl-") + "C to copy";
|
||
|
i(t.trigger).attr("title", e).tooltip("_fixTitle").tooltip("show").attr("title", "Copy to clipboard").tooltip("_fixTitle")
|
||
|
}), anchors.options = {
|
||
|
icon: "#"
|
||
|
}, anchors.add(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5"), i(".bd-content > h2, .bd-content > h3, .bd-content > h4, .bd-content > h5").wrapInner("<div></div>")
|
||
|
}), i("#particles-js").length) {
|
||
|
t("particles-js", {
|
||
|
particles: {
|
||
|
number: {
|
||
|
value: 160,
|
||
|
density: {
|
||
|
enable: !0,
|
||
|
value_area: 800
|
||
|
}
|
||
|
},
|
||
|
color: {
|
||
|
value: "#FFF"
|
||
|
},
|
||
|
shape: {
|
||
|
type: "circle",
|
||
|
stroke: {
|
||
|
width: 0,
|
||
|
color: "#000000"
|
||
|
}
|
||
|
},
|
||
|
opacity: {
|
||
|
value: .8,
|
||
|
random: !0,
|
||
|
anim: {
|
||
|
enable: !0,
|
||
|
speed: 1,
|
||
|
opacity_min: 0,
|
||
|
sync: !1
|
||
|
}
|
||
|
},
|
||
|
size: {
|
||
|
value: 2,
|
||
|
random: !0,
|
||
|
anim: {
|
||
|
enable: !1,
|
||
|
speed: 4,
|
||
|
size_min: .3,
|
||
|
sync: !1
|
||
|
}
|
||
|
},
|
||
|
line_linked: {
|
||
|
enable: !1,
|
||
|
distance: 150,
|
||
|
color: "#ffffff",
|
||
|
opacity: .1,
|
||
|
width: 1
|
||
|
},
|
||
|
move: {
|
||
|
enable: !0,
|
||
|
speed: .2,
|
||
|
direction: "top",
|
||
|
random: !0,
|
||
|
straight: !1,
|
||
|
out_mode: "out",
|
||
|
bounce: !1,
|
||
|
attract: {
|
||
|
enable: !1,
|
||
|
rotateX: 600,
|
||
|
rotateY: 600
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
retina_detect: !0
|
||
|
})
|
||
|
}
|
||
|
}($, particlesJS);
|