Skip to content

Commit

Permalink
Upgrade jQuery to v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
skydiver committed Mar 22, 2018
1 parent ab14ffb commit f17839b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/MaterializeCSSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ class MaterializeCSSBuilder {
private static $file_css_min = '/materialize-css/css/materialize.min.css';
private static $file_js = '/materialize-css/js/materialize.js';
private static $file_js_min = '/materialize-css/js/materialize.min.js';
private static $file_jquery = 'jquery-2.1.1.min.js';
private static $jquery_ver = 'jquery-3.3.1.min.js';
private static $jquery_sha = 'sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=';


public static function include_full() {
$return = self::include_css();
$return .= self::tag_js('https://code.jquery.com/'.self::$file_jquery);
$return .= self::tag_js('https://code.jquery.com/'.self::$jquery_ver);
$return .= self::include_js();
return $return;
}
Expand Down Expand Up @@ -68,6 +69,10 @@ private static function tag_js($path) {
return '<script type="text/javascript" src="'.$path.'"></script>';
}

private static function jquery_tag_js($path) {
return '<script src="'.$path.'" integrity="'.$jquery_sha.'" crossorigin="anonymous"></script>';
}

}

?>

0 comments on commit f17839b

Please sign in to comment.