Jeremy Newman : moving css and js to own subdirs

Jeremy Newman jnewman at winehq.org
Fri Feb 3 11:06:49 CST 2017


Module: appdb
Branch: master
Commit: f30bc6ddd2feb922bb749bd463993a23f52c806d
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=f30bc6ddd2feb922bb749bd463993a23f52c806d

Author: Jeremy Newman <jnewman at codeweavers.com>
Date:   Fri Feb  3 10:09:15 2017 -0600

moving css and js to own subdirs

---

 styles.css => css/styles.css | 0
 include/header.php           | 8 ++++----
 utils.js => js/utils.js      | 0
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/styles.css b/css/styles.css
similarity index 100%
rename from styles.css
rename to css/styles.css
diff --git a/include/header.php b/include/header.php
index 61aff7b..57d4249 100644
--- a/include/header.php
+++ b/include/header.php
@@ -4,8 +4,8 @@
 /*********************************/
 
 // get file modification time for local CSS/JS to fix caching issues
-$iCSStime = filemtime(BASE."styles.css");
-$iJStime = filemtime(BASE."utils.js");
+$iCSStime = filemtime(BASE."css/styles.css");
+$iJStime = filemtime(BASE."js/utils.js");
 
 ?><!doctype html>
 <html lang="en">
@@ -23,12 +23,12 @@ $iJStime = filemtime(BASE."utils.js");
     <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
     <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css" type="text/css" media="all">
-    <link rel="stylesheet" href="<?php echo BASE; ?>styles.css?f=<?php echo $iCSStime; ?>" type="text/css" media="all">
+    <link rel="stylesheet" href="<?php echo BASE; ?>css/styles.css?f=<?php echo $iCSStime; ?>" type="text/css" media="all">
 
     <script src="https://code.jquery.com/jquery-2.2.3.min.js" type="text/javascript"></script>
     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
     <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js" type="text/javascript"></script>
-    <script src="<?php echo BASE; ?>utils.js?f=<?php echo $iJStime; ?>"></script>
+    <script src="<?php echo BASE; ?>js/utils.js?f=<?php echo $iJStime; ?>"></script>
 <?php
 // additional header code
 if (!empty($sHeaderCode))
diff --git a/utils.js b/js/utils.js
similarity index 100%
rename from utils.js
rename to js/utils.js




More information about the wine-cvs mailing list