Adding highcharts to static content so they can be accessed in a non asset pipeline manner
This commit is contained in:
parent
9e7f4aff09
commit
96b4feab0d
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="http<%= 's' if @ssl %>://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http<%= 's' if @ssl %>://api.thingspeak.com/javascripts/highcharts<%= '-android' if get_header_value('user_agent').upcase.index('ANDROID') %>.js"></script>
|
||||
<script type="text/javascript" src="../javascripts/highcharts<%= '-android' if get_header_value('user_agent').upcase.index('ANDROID') %>.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -151,4 +151,4 @@
|
||||
<body style='background-color: <%= params[:bgcolor] ? params[:bgcolor] : 'white' %>;'>
|
||||
<div id="chart-container" style="width: <%= params[:width] ? params[:width].to_i - 25 : @width.to_i - 25 %>px; height: <%= params[:height] ? params[:height].to_i - 25 : @height.to_i - 25 %>px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
10740
public/javascripts/highcharts-android.js
Normal file
10740
public/javascripts/highcharts-android.js
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user