Skip to content

Commit

Permalink
Merge pull request #6 from julianchristmas/patch-2
Browse files Browse the repository at this point in the history
Removed protocol relative URL for jQuery and added charset / type="text/javascript"
  • Loading branch information
skydiver authored Dec 3, 2017
2 parents 238711f + ffd0876 commit 5a049e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/MaterializeCSSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MaterializeCSSBuilder {

public static function include_full() {
$return = self::include_css();
$return .= self::tag_js('//code.jquery.com/'.self::$file_jquery);
$return .= self::tag_js('https://code.jquery.com/'.self::$file_jquery);
$return .= self::include_js();
return $return;
}
Expand Down Expand Up @@ -61,13 +61,13 @@ public static function get_url_js($full=false, $secure=false) {
}

private static function tag_css($path) {
return '<link rel="stylesheet" href="'.$path.'">';
return '<link rel="stylesheet" charset="utf-8" href="'.$path.'">';
}

private static function tag_js($path) {
return '<script src="'.$path.'"></script>';
return '<script type="text/javascript" src="'.$path.'"></script>';
}

}

?>
?>

0 comments on commit 5a049e9

Please sign in to comment.