flag-icon-css: how to use 🇬🇧
2020-01-26 2020-02-08 16:52:31

CSS,icon,EN

Get the library

Using CDN

cloudflare.com

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.4.3/css/flag-icon.min.css" />

Via Installation

direct

bower install flag-icon-css

via bower.json

...
"flag-icon-css": "3.4.5"
...

Usage

flag-icon

_css; rectangle flag ( […]


How to dynamically load Cascading Style Sheet (CSS) and JS sources within Javascript
2020-01-22 2020-01-26 10:43:45

Javascript,CSS,EN

Loading JavaScript

simple

var oScript = document.createElement('script');
oScript.src = 'URL';
document.head.appendChild(oScript);

with callback

var oScript = document.createElement('script');
oScript.onload = function () {
    // ...code...
};
oScript.src = 'URL';
document.head.appendChild(oScript);

Loading CSS


var oLink  = document.createElement('link');
oLink.id   = cssId;
oLink.rel  = 'stylesheet';
oLink.type = 'text/css';
 […]

This website uses Cookies to provide you with the best possible service. Please see our Privacy Policy for more information. Click the check box below to accept cookies. Then confirm with a click on "Save".