Coder Social home page Coder Social logo

scrollLeft error about nggallery HOT 3 CLOSED

satore11 avatar satore11 commented on September 6, 2024
scrollLeft error

from nggallery.

Comments (3)

SchwarzwaldFalke avatar SchwarzwaldFalke commented on September 6, 2024

Hi,
can you please upload an example?

from nggallery.

MaccerC avatar MaccerC commented on September 6, 2024

I have the very same error.
This is my JS code:

`var app = angular.module('galley', ['jkuri.gallery']);

app.controller('Ctrl', ['$scope', '$document', function($scope, $document){

$scope.images = [
      {"thumb": "images/thumbs/piraten-01.jpg", "img": "images/views/piraten-01.jpg", "downloadSrc": "images/downloads/piraten-01.jpg"},
      {"thumb": "images/thumbs/piraten-02.jpg", "img": "images/views/piraten-02.jpg", "downloadSrc": "images/downloads/piraten-02.jpg"},
      {"thumb": "images/thumbs/piraten-03.jpg", "img": "images/views/piraten-03.jpg", "downloadSrc": "images/downloads/piraten-03.jpg"},
      {"thumb": "images/thumbs/piraten-04.jpg", "img": "images/views/piraten-04.jpg", "downloadSrc": "images/downloads/piraten-04.jpg"}
     ];

}]);`

And here is the HTML code:
`

<title>Gallery</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.2/angular.min.js"></script>
    <script src="https://code.jquery.com/jquery-1.12.2.min.js" integrity="sha256-lZFHibXzMHo3GGeehn1hudTAP3Sc0uKXBXAzHX1sjtk=" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
    <script src="js/ngGallery.js"></script>
    <script src="js/app.js"></script>

</head>

<body ng-controller="Ctrl">

<div class="container">
    <div class="content">
        <ng-gallery images="images" thumbs-num="7"></ng-gallery>
    </div>
</div>
</body>
`

I hope you can sort this out for me.
Grtz,
MaccerC

from nggallery.

satore11 avatar satore11 commented on September 6, 2024

My code is the documentation example that after update not work for me, I have not yet adapted to my needs.
Simple gallery with 11 thumbs and images.
You will not have the same mistake?
Thankyou and sorry for my bad english
Satore

from nggallery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.