L'échantillon HTM5L de l'aéroport ne fonctionne pas dans iOS Safari (photo semble continuer à charger)

StackOverflow https://stackoverflow.com//questions/10666713

  •  11-12-2019
  •  | 
  •  

Question

J'ai pris l'échantillon HTML5 et j'ai essayé dans iOS Safari.

L'exemple photo apparaît mais continue de charger de manière continue et aucune action d'édition de volière ne peut être effectuée.

Quelqu'un a-t-il une solution?

Voici le code exemple directement à partir du site de la volière à http://www.aviary.com/web-Documentation

<!-- Load Feather code -->

<script type="text/javascript" src="http://feather.aviary.com/js/feather.js"></script>

<!-- Instantiate Feather -->

<script type="text/javascript">

        var featherEditor = new Aviary.Feather({

            apiKey: '12345678',

            apiVersion: 2,

            tools: 'all',

            appendTo: 'injection_site',

            onSave: function(imageID, newURL) {

                var img = document.getElementById(imageID);

                img.src = newURL;

            }

        });



        function launchEditor(id, src) {

            featherEditor.launch({

                image: id,

                url: src

            });

            return false;

        }

</script>



    <div id="injection_site"></div>



    <img id="image1" src="http://images.aviary.com/imagesv5/feather_default.jpg"/>



    <!-- Add an edit button, passing the HTML id of the image and the public URL ot the image -->

    <p><input type="image" src="http://advanced.aviary.com/images/feather/edit-photo.png" value="Edit photo" onclick="return launchEditor('image1', 'http://images.aviary.com/imagesv5/feather_default.jpg');" /></p>

Était-ce utile?

La solution

J'ai contacté la volière à l'API@aviary.com et ils ont mentionné qu'il y avait un bug qu'ils ont fixé aujourd'hui.Cela fonctionne maintenant.

Autres conseils

Vous devez mettre ce code sur Live Server, local ne semble pas fonctionner ici.La documentation Web de la volière indique que "Définir un emplacement sur votre serveur pour la volière pour envoyer un message http serveur à serveur".

juste au cas où ... Vous devez ajouter le «SRC» complet sur la photo. Au lieu de cela, nous utilisons "src= '/ upload / miphoto.png'" Vous devez utiliser "src= ' http:// localhost: 8080 / projet / upload / miphoto.png '" J'espère que cela vous aidera!

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top