Dragable in win phone 8.1 and base 64
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! :smiley:
Can you propose a pull request for these two issues? I'd be glad to look at them and contribute them back to the repository
On Mon, Jul 27, 2015 at 10:49 AM, Tecaa [email protected] wrote:
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: :smiley:]
— Reply to this email directly or view it on GitHub https://github.com/matdumsa/jQuery.threesixty/issues/9.