Archived
Cleanup Jquery
This commit is contained in:
9 files changed
+60
-14
No files matched your search
@@ -3,7 +3,7 @@
|
||||
href="{{ include.link }}" class="badge badge-{{ include.color | default: "info" }}"
|
||||
{% if include.tooltip %}
|
||||
data-toggle="tooltip"
|
||||
title="{{ include.tooltip }}"><i class="{{ include.icon | default: "far fa-question-circle"}}"></i> {{ include.text }}
|
||||
data-original-title="{{ include.tooltip }}"><i class="{{ include.icon | default: "far fa-question-circle"}}"></i> {{ include.text }}
|
||||
{% else %}><i class="{{ include.icon | default: "fas fa-external-link-alt"}}"></i> {{ include.text }}{% endif %}
|
||||
</a>
|
||||
{% else %}
|
||||
@@ -11,7 +11,7 @@
|
||||
class="badge badge-{{ include.color | default: "info" }}"
|
||||
{% if include.tooltip %}
|
||||
data-toggle="tooltip"
|
||||
title="{{ include.tooltip }}"
|
||||
data-original-title="{{ include.tooltip }}"
|
||||
> <i class="{{ include.icon | default: "far fa-question-circle"}}"></i> {{include.text}}
|
||||
{% else %}
|
||||
> {% if include.icon %}<i class="{{ include.icon }}"></i>{% endif %} {{include.text}}
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
{% assign text = label_data[1] %}
|
||||
{% assign tooltip = label_data[2] | default: "" %}
|
||||
{% assign help_icon = '<i class="far fa-question-circle"></i>' %}
|
||||
<span class="badge badge-{{color}}" {% if tooltip %} data-toggle="tooltip" title="{{ tooltip }}">{{text}} {{ help_icon
|
||||
<span class="badge badge-{{color}}" {% if tooltip %} data-toggle="tooltip" data-original-title="{{ tooltip }}">{{text}} {{ help_icon
|
||||
}}
|
||||
{% else %}
|
||||
>{{text}}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
class="badge badge-{{color}}"
|
||||
{% if tooltip %}
|
||||
data-toggle="tooltip"
|
||||
title="{{ tooltip }}"
|
||||
data-original-title="{{ tooltip }}"
|
||||
> {{text}} {{ help_icon }}
|
||||
{% else %}
|
||||
> {{text}}
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
<span class="fab fa-creative-commons-zero fa-2x mr-2"></span>
|
||||
<a
|
||||
href="/LICENSE.txt"
|
||||
title="This work is free. You can redistribute it and/or modify it under the terms of the "Creative Commons CC0 1.0 Universal Public Domain Dedication"."
|
||||
data-original-title="This work is free. You can redistribute it and/or modify it under the terms of the "Creative Commons CC0 1.0 Universal Public Domain Dedication"."
|
||||
data-toggle="tooltip"
|
||||
data-placement="top">
|
||||
CC0
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
<script src="/assets/js/jquery-3.3.1.min.js?v=4"></script>
|
||||
<script src="/assets/js/popper.min.js?v=4"></script>
|
||||
<script src="/assets/js/bootstrap.min.js?v=4"></script>
|
||||
<script src="/assets/js/sortable.min.js?v=4"></script>
|
||||
|
||||
@@ -95,7 +95,7 @@ We also log how many times this or that tracker has been blocked. We need this i
|
||||
<td>
|
||||
<div
|
||||
class="btn-secondary btn-icon"
|
||||
title=""No logs.""
|
||||
data-original-title=""No logs.""
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom">
|
||||
<span class="fas fa-globe"></span>
|
||||
@@ -186,7 +186,7 @@ We also log how many times this or that tracker has been blocked. We need this i
|
||||
<td>
|
||||
<div
|
||||
class="btn-secondary btn-icon"
|
||||
title=""CZ.NIC resolvers neither collect any personal data nor gather information on pages where your computer sends personal data.""
|
||||
data-original-title=""CZ.NIC resolvers neither collect any personal data nor gather information on pages where your computer sends personal data.""
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom">
|
||||
<span class="fas fa-globe"></span>
|
||||
@@ -507,7 +507,7 @@ We also log how many times this or that tracker has been blocked. We need this i
|
||||
<td>
|
||||
<div
|
||||
class="btn-secondary btn-icon"
|
||||
title=""Absolutely nothing is being logged, neither about the users nor the usage of this service. I do keep graphs of the total number of queries, but no personally identifiable information is saved. The data that is saved will never be sold or used for anything except capacity planning of the service.""
|
||||
data-original-title=""Absolutely nothing is being logged, neither about the users nor the usage of this service. I do keep graphs of the total number of queries, but no personally identifiable information is saved. The data that is saved will never be sold or used for anything except capacity planning of the service.""
|
||||
data-toggle="tooltip"
|
||||
data-placement="bottom">
|
||||
<span class="fas fa-globe"></span>
|
||||
|
||||
@@ -406,3 +406,55 @@ input#nav-toggle,
|
||||
font-size: 0.875em;
|
||||
content: "\f186";
|
||||
}
|
||||
|
||||
/* Vanilla CSS implementation for tooltip */
|
||||
[data-toggle="tooltip"] {
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
z-index: 1337;
|
||||
}
|
||||
|
||||
[data-toggle="tooltip"]:before,
|
||||
[data-toggle="tooltip"]:after {
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s linear;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
[data-toggle="tooltip"]:before {
|
||||
background-color: #000;
|
||||
border-radius: 3px;
|
||||
bottom: 150%;
|
||||
content: attr(data-original-title);
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
left: 50%;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 5px;
|
||||
margin-left: -100px;
|
||||
padding: 7px;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
/* Little arrow */
|
||||
[data-toggle="tooltip"]:after {
|
||||
border-style: solid;
|
||||
border-left-color: transparent;
|
||||
border-right-color: transparent;
|
||||
border-top-color: #000;
|
||||
border-width: 5px;
|
||||
border-bottom: none;
|
||||
bottom: 150%;
|
||||
content: " ";
|
||||
left: 50%;
|
||||
margin-left: -5px;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
}
|
||||
|
||||
[data-toggle="tooltip"]:hover:before,
|
||||
[data-toggle="tooltip"]:hover:after {
|
||||
opacity: .9;
|
||||
}
|
||||
Vendored
-2
@@ -1,2 +0,0 @@
|
||||
/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
||||
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,u=n.indexOf,l={},c=l.toString,f=l.hasOwnProperty,p=f.toString,d=p.call(Object),h={},g=function e(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function e(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function m(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in v)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var b="3.3.1",w=function(e,t){return new w.fn.init(e,t)},T=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.fn=w.prototype={jquery:"3.3.1",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(w.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&w.isPlainObject(n)?n:{},a[t]=w.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},w.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=i(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===d)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){m(e)},each:function(e,t){var n,r=0;if(C(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(T,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?w.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)(r=!t(e[o],o))!==s&&i.push(e[o]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});function C(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!g(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}var E=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,y,v,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,E=ae(),k=ae(),S=ae(),D=function(e,t){return e===t&&(f=!0),0},N={}.hasOwnProperty,A=[],j=A.pop,q=A.push,L=A.push,H=A.slice,O=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),F=new RegExp("^"+M+"*,"+M+"*"),_=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),X=new RegExp(W),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)Line truncated
|
||||
@@ -1,6 +1,3 @@
|
||||
$(function() {
|
||||
$("[data-toggle='tooltip']").tooltip();
|
||||
});
|
||||
document.querySelectorAll(".onclick-select").forEach(element => {
|
||||
element.addEventListener("click", element.select);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user