This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content: url('data:image/svg+xml; utf8, <svg | |
xmlns="http://www.w3.org/2000/svg" | |
xmlns:xlink="http://www.w3.org/1999/xlink" | |
width="33px" height="20px"> | |
<path fill-rule="evenodd" fill="rgb(47, 201, 239)" | |
d="M23.464,0.977 L21.349,3.086 L27.271,8.991 L-0.008,8.991 L-0.008,11.974 L27.271,11.974 L21.349,17.880 L23.464,19.988 L32.998,10.482 L23.464,0.977 Z"/> | |
</svg>'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getUrlParameter(url, parameter) { | |
parameter = parameter.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]'); | |
var regex = new RegExp('[\\?|&]' + parameter.toLowerCase() + '=([^&#]*)'); | |
var results = regex.exec('?' + url.toLowerCase().split('?')[1]); | |
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' ')); | |
} | |
function setUrlParameter(url, key, value) { | |
var baseUrl = url.split('?')[0], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let allowCrossDomain = function(req, res, next) { | |
res.header('Access-Control-Allow-Origin', "*"); | |
res.header('Access-Control-Allow-Headers', "*"); | |
next(); | |
} | |
app.use(allowCrossDomain); // чтобы все могли обращаться |
OlderNewer