mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fixes #990 Javascript works again.
This commit is contained in:
@@ -12,8 +12,8 @@
|
||||
//<link rel="stylesheet" href="/resources/demos/style.css" />
|
||||
</script>
|
||||
|
||||
<script src="http://www.coolprop.sourceforge.net/jscript/coolprop-latest.js"></script>
|
||||
<!-- <script src="coolprop.js"></script> -->
|
||||
<script src="http://www.coolprop.sourceforge.net/jscript/coolprop.js"></script>
|
||||
<!-- script src="coolprop.js"></script -->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -10,9 +10,11 @@ Pre-Compiled Binaries
|
||||
|
||||
* Download the precompiled binaries from :sfdownloads:`Javascript`, or the development versions from the buildbot server at :sfnightly:`Javascript`
|
||||
|
||||
* Load your js file into your website, following the structure of `the example here <https://github.com/CoolProp/CoolProp/blob/master/Web/coolprop/wrappers/Javascript/index.html>`_, which is also included at the above download link
|
||||
* You can load your js file into your website, following the structure of `the example here <https://github.com/CoolProp/CoolProp/blob/master/Web/coolprop/wrappers/Javascript/index.html>`_, which is also included at the above download.
|
||||
|
||||
* You can also build your website and include our hosted Javascript repository. You will never ever have to update your library by linking directly to ``<script src="http://www.coolprop.sourceforge.net/jscript/coolprop-latest.js"></script>`` in your HTML header. Until now, this file does not get updated automatically, so please file an issue on
|
||||
* Alternatively, you can link to our server directly to make sure that you always have the latest version of CoolProp. To do so, include the address ``<script src="http://www.coolprop.sourceforge.net/jscript/coolprop.js"></script>`` in your HTML header instad of the relative path ``<script src="coolprop.js"></script>``.
|
||||
|
||||
* A live demo of the Javascript library in action can also be found `online <http://www.coolprop.sourceforge.net/jscript/index.html>`_.
|
||||
|
||||
User-Compiled Binaries
|
||||
======================
|
||||
|
||||
@@ -152,8 +152,8 @@ if [ ${CPVERSION:0:7} != "nightly" ]; then
|
||||
printMessage "Updating the default Javascript library on SourceForge"
|
||||
pushd "$BINFOLDER/Javascript/"
|
||||
cp "coolprop.js" "coolprop-${CPVERSION}.js"
|
||||
ln -sf "coolprop-${CPVERSION}.js" "coolprop-latest.js"
|
||||
rsync $RSYNC_DRY_RUN $RSYNC_OPTS "coolprop-${CPVERSION}.js" "coolprop-latest.js" frs.sf.net-$SFUSER:/home/project-web/coolprop/htdocs/jscript/
|
||||
cp "coolprop.js.mem" "coolprop-${CPVERSION}.js.mem"
|
||||
rsync $RSYNC_DRY_RUN $RSYNC_OPTS "coolprop.js" "coolprop-${CPVERSION}.js" "coolprop.js.mem" "coolprop-${CPVERSION}.js.mem" "index.html" frs.sf.net-$SFUSER:/home/project-web/coolprop/htdocs/jscript/
|
||||
popd
|
||||
else
|
||||
printMessage "Publishing the development docs on SourceForge"
|
||||
|
||||
Reference in New Issue
Block a user