javascript - How to add a css file like materialize in popup.js of chrome extension? -


actually making chrome extension, have added materialize css popup.html , works when added button in popup.html want append button has materialize css style popup.js.

basically want have materialize style while appending js file.
have tried:

popup.html-

<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> 

code have tried in(popup.js):

$('head').append('<link rel="stylesheet" href="css/materialize.min.css" type="text/css" />');  $("#demo").append("<a class="waves-effect waves-light btn">button</a>"); 


Comments

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -