Skip to content

Dragable in win phone 8.1 and base 64 #9

Description

@Tecaa

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! 😃

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions