update jquery 1.11.1 to 3.3.1 in front page
This commit is contained in:
parent
47f206e33d
commit
c6edcce34b
|
@ -41,6 +41,19 @@ change_text_fix = '<a title="{{site_title_1}}" class="" href="{{home_link_1}}"><
|
|||
change_text_fix1 = '<a title="{{site_title_1}}" class="" href="{{home_link_1}}"><img class="site-logo" src="{{logo_url_1}}" alt="Site Logo"></a><script>$(document).ready(function(){var url =$(\'.site-logo\').eq(0).attr(\'src\');if(url == "/assets/default-site-logo.png"){if($(\'.navbar-brand\').length != 0){$(\'.navbar-brand\').eq(0).remove();}else{$(\'.site-title >a\').eq(0).remove();}};if($(\'.navbar-brand\').length == 2 || $(\'.site-title >a\').length == 2){$(\'.site-logo\').css(\'height\',\'auto\')};$(\'.site-logo\').eq(0).css(\'margin-right\',0);$(\'.navbar-brand\').css(\'padding-right\',0)})</script><a title="{{site_title}}" class="" href="{{home_link}}"><img class="site-logo" src="{{logo_url}}" alt="Site Logo"> {{site_name}}</a>'
|
||||
all_template.each do |folder|
|
||||
if !folder.include?('mobile')
|
||||
begin
|
||||
filename = folder+'partial/_head.html.erb'
|
||||
texts = File.read(filename).force_encoding('UTF-8')
|
||||
new_texts = texts.gsub(/lib\/jquery\-1\.11\.0.min|\/\/cdnjs.cloudflare.com\/ajax\/libs\/jquery\/1\.11\.0\/jquery.min.js/,'jquery.min')
|
||||
if texts != new_texts
|
||||
File.open(filename,'w') do |f|
|
||||
f.write new_texts
|
||||
end
|
||||
end
|
||||
rescue => e
|
||||
puts "#{e.inspect}\nnot found #{folder}partial/_head.html.erb"
|
||||
end
|
||||
|
||||
begin
|
||||
begin
|
||||
require 'nokogiri'
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue