You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I give you 2 solutions to 2 problems I had recently:
The first is when you are using base 64 images from any database or whatever.
I modified the plugin adding the "base64" option as a boolean, and I added the lines
var b64 = "";
if (options.base64)
b64 = "data:image/jpeg;base64,";
after the options reading and when we need to set the src of images we put b64 var before like this:
...
var o =$("").attr("src",b64+record).load(function() {
...
pic.attr("src",b64+imgArr[newIndex]);
...
window.setInterval(function() { pic.attr("src", b64+imgArr[++newIndex % imgArr.length])} , speed);
....
this way we can use base 64 encode in this plugin.
The second problem was with Internet Explorer on Windows Phone 8.1 because I want to rotate my images with "click" enabled but it makes the page drag and drop instead of rotate the image.
Then I set in html and the problem is fixed! 😃
The text was updated successfully, but these errors were encountered:
I let you 2 solutions to 2 problems I had recently:
The first is when you are using base 64 images from any database or
whatever.
I modified the plugin adding the "base64" option as a boolean, and I added
the lines
var b64 = "";
if (options.base64)
b64 = "data:image/jpeg;base64,";
after the options reading and when we need to set the src of images we put
b64 var before like this:
...
var o =$("").attr("src",b64+record).load(function() {
...
pic.attr("src",b64+imgArr[newIndex]);
...
window.setInterval(function() { pic.attr("src", b64+imgArr[++newIndex %
imgArr.length])} , speed);
....
this way we can use base 64 encode in this plugin.
The second problem was with Internet Explorer on Windows Phone 8.1 because
I want to rotate my images with "click" enabled but it makes the page drag
and drop instead of rotate the image.
Then I set in html and the problem is fixed! [image: 😃]
—
Reply to this email directly or view it on GitHub #9.
I give you 2 solutions to 2 problems I had recently:
The first is when you are using base 64 images from any database or whatever.
I modified the plugin adding the "base64" option as a boolean, and I added the lines
var b64 = "";
if (options.base64)
b64 = "data:image/jpeg;base64,";
after the options reading and when we need to set the src of images we put b64 var before like this:
").attr("src",b64+record).load(function() {
...
var o =$("
...
pic.attr("src",b64+imgArr[newIndex]);
...
window.setInterval(function() { pic.attr("src", b64+imgArr[++newIndex % imgArr.length])} , speed);
....
this way we can use base 64 encode in this plugin.
The second problem was with Internet Explorer on Windows Phone 8.1 because I want to rotate my images with "click" enabled but it makes the page drag and drop instead of rotate the image.
Then I set in html
and the problem is fixed! 😃
The text was updated successfully, but these errors were encountered: