-
AuthorPosts
-
hotsd101 Friend
hotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
April 16, 2013 at 2:08 pm #186810for one page is having bug relating to canvas control when using CDN or another source for load gray scale images because generate on server and normal image and script is on another location place.
see example image
some discussion of this issue found here: http://stackoverflow.com/questions/9972049/cross-origin-data-in-html5-canvas
what is ja suggestion to fix this issue.
its big problem because ja onepage VERY slow template and must have CDN to be good perform,
please advise best solution to which to edit to fix.
thanks you
-
hotsd101 Friend
hotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
April 17, 2013 at 8:19 am #490144? nothing answer for this bugs plz
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
April 18, 2013 at 3:08 am #490244<em>@hotsd101 369292 wrote:</em><blockquote>? nothing answer for this bugs plz</blockquote>
Apologies for this late response, on this case I would need to take a closer look at your site. Please pm me url and admin access of your site. I shall check it for you.
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
April 18, 2013 at 5:30 am #490264um, please read issue again.
this is not issue with my site it code problem on all site which using that template and loading image from diff sououcre like u can see there.
hotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
April 21, 2013 at 1:37 pm #490583any answer for this yet ? ?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
April 22, 2013 at 4:44 pm #490728Hi hotsd101,
We are sorry but for current grayscale function will only work with local image.
You can disabled grayscale function if you use image from another domain.To disable grayscale function, please open templatesja_onepagejsscript.js and comment out the block code from line 162 to 196
There is a solutions for grayscale image by css. But when we release JA Onepage, Firefox have unexpected result, so we do not use that solution. We have not test with latest Firefox version.
Here the css if you want to give it a try.
img.grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}
Regardshotsd101 Friendhotsd101
- Join date:
- March 2015
- Posts:
- 95
- Downloads:
- 2
- Uploads:
- 4
- Thanked:
- 8 times in 1 posts
April 23, 2013 at 3:50 pm #490846thats you very much ?
where is this best place to place this code which file ?
Wall Crasher DeveloperWall Crasher
- Join date:
- December 2011
- Posts:
- 1113
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 66
- Thanked:
- 361 times in 300 posts
April 24, 2013 at 1:41 am #490867Hi hotsd101,
Here’s how you can use CSS grayscale.
1. Open templatesja_onepagejsscript.js
Comment out line 162 to 1972. Open templatesja_onepagelessstyle.less
.ja-cp-image img,
.img-grayscale img,
img.img-grayscale {
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
filter: gray; /* IE6-9 */
-webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}.ja-cp-image:hover img,
.img-grayscale:hover img,
img.img-grayscale:hover {
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0'/></filter></svg>#grayscale");
-webkit-filter: grayscale(0%);
}Put this css block code to the bottom of file.
3. Go to Template Manager and press Compile LESS to CSS (please backup your template first).
Hope it helps.
Regards
-
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 3 voices, and was last updated by Wall Crasher 11 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum