diff --git a/themes/codeorigin.jquery.com/page.php b/themes/codeorigin.jquery.com/page.php index 6e799caf..e062f99f 100644 --- a/themes/codeorigin.jquery.com/page.php +++ b/themes/codeorigin.jquery.com/page.php @@ -1,7 +1,39 @@ + + +
+ + +
+ The integrity and crossorigin attributes are used for + Subresource Integrity (SRI) checking. + This allows browsers to ensure that resources hosted on third-party servers have + not been tampered with. Use of SRI is recommended as a best-practice, whenever + libraries are loaded from a third-party source. Read more at srihash.org +
+
+
ID, "hide_title" ) ) ) : ?> diff --git a/themes/jquery/css/sri-modal.css b/themes/jquery/css/sri-modal.css new file mode 100644 index 00000000..7b82c9a1 --- /dev/null +++ b/themes/jquery/css/sri-modal.css @@ -0,0 +1,88 @@ +/* + * Added for SRI Modal + */ +.sri-modal { + padding: 0; + border: none; + background: #fff; + border-radius: 0; +} + +.sri-modal .ui-dialog-titlebar { + padding: 0; + border: none; + background: #fff; + color: #000; + cursor: auto; +} + +.sri-modal .ui-dialog-title { + padding-top: 20px; + text-align: center; + font-family: "klavika-web", "Helvetica Neue", Helvetica, Arial, Geneva, sans-serif; + font-weight: 400; + width: 100%; +} + +.sri-modal .ui-dialog-titlebar-close { + background: none; + border: none; + right: 28px; +} + +.sri-modal .ui-icon-closethick { + background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAclBMVEUAAADMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMxg1ZvWAAAAJXRSTlMAAQIDBAUGCQsNDhQWGSg4g4uUoKOoq62vsLW8wMrO2tzk5ujxm/5xbwAAAGxJREFUGBmNwVcWgkAQRcFHg4FgzjomZu7+t+hpRv6p0iS7byPJTs+5BluIjewML5O7A3F1AdJMrgpkqVVWBVxqNVriNhrZDRdrZXYl62sNjkBaB6Cv5PaQOpUB3iZXHFInqXx8FvozDQpN8gNoXAtiMhPWmQAAAABJRU5ErkJggg==) 0 0; +} + +.sri-modal .ui-widget-content { + padding: 30px 0 0 0; +} + +.sri-modal .ui-widget-content a { + color: #b24926; +} + +.sri-modal-link { + width: 810px; + word-wrap: break-word; + word-break: break-all; + display: inline-block; + background-color: #f8fbfb; + padding: 0 10px; + position: relative; +} + +.sri-modal-link code { + width: 765px; + display: inline-block; + white-space: pre-line; + background-color: transparent; + padding: 0; + font-size: 13px; + line-height: 16px; +} + +.sri-modal-copy-btn { + background-color: #1c6db3; + border: none; + font-size: 1rem; + width: 35px; + height: 35px; + cursor: pointer; + position: absolute; + top: 5px; +} + +.sri-modal-copy-btn > i { + color: #fff; +} + +.sri-modal-info { + padding: 15px; + font: 15px/22px "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif; +} + +#sri-modal-template { + display: none; +} + diff --git a/themes/jquery/js/clipboard.1.5.5.min.js b/themes/jquery/js/clipboard.1.5.5.min.js new file mode 100644 index 00000000..4e2a012a --- /dev/null +++ b/themes/jquery/js/clipboard.1.5.5.min.js @@ -0,0 +1,7 @@ +/*! + * clipboard.js v1.5.5 + * https://zenorocha.github.io/clipboard.js + * + * Licensed MIT © Zeno Rocha + */ +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!c&&s)return s(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,function(t){var n=e[a][1][t];return o(n?n:t)},l,l.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;ar;r++)n[r].fn.apply(n[r].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),r=n[t],o=[];if(r&&e)for(var i=0,a=r.length;a>i;i++)r[i].fn!==e&&r[i].fn._!==e&&o.push(r[i]);return o.length?n[t]=o:delete n[t],this}},e.exports=r},{}],8:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=function(){function t(t,e){for(var n=0;n