The iwfixer.js
file contents should be appended at the very bottom
of the iWebSite.js
script in the iWeb application. This will then
become minified with the iWebSite.js file when any iWeb site is
published.
This is only known to work with iWeb 3.0; however, only the instructions should need to be modified for it to work with earlier versions. Note: iWeb has been discontinued by Apple, so there should not be any forward compatibility issues to consider.
The iWebSite.js
file is found in the iWeb application package under
Contents/Resources/Scripts/Site/iWebSite.js
The IWFixer.fixIframes
method loops over all the iframes with src
targets starting with .//
, and removes this.
Copyright 2013 Travis Warlick, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.