1
Vote

what's wrong?i can't render my html

description

NVelocity.Runtime.Parser.ParseException: Encountered "\r\n\t\t\t\tfilter: \'*\',\r\n\t\t\t\tanimationEngine: \'best-available\',\r\n\t\t\t\tlayoutMode: portfolioLayout,\r\n\t\t\t\tanimationOptions: {\r\n\t\t\t\tduration: 750,\r\n\t\t\t\teasing: \'linear\',\r\n\t\t\t\tqueue: false\r\n\t\t\t},\r\n\t\t\tmasonry: {\r\n\t\t\t}\r\n\t\t\t}, refreshWaypoints());\r\n\t\t\t\r\n\t\t\tfunction refreshWaypoints() {setTimeout(function(){},1000);}\r\n\t\t\t\t\t\r\n\t\t\t" at line 415, column 45.
Was expecting:
<IDENTIFIER> ...

so what‘s wrong in the NVelocity?my script here is:
(function($) {
    "use strict";
    var $container = $('.portfolio_wrapper'),
        $items = $container.find('.item'),
        portfolioLayout = 'masonry';

        $container.isotope({
            filter: '*',
            animationEngine: 'best-available',
            layoutMode: portfolioLayout,
            animationOptions: {
            duration: 750,
            easing: 'linear',
            queue: false
        },
        masonry: {
        }
        }, refreshWaypoints());

        function refreshWaypoints() {setTimeout(function(){},1000);}

        $('nav.portfolio-filter ul a').on('click', function() {
                var selector = $(this).attr('data-filter');
                $container.isotope({ filter: selector }, refreshWaypoints());
                $('nav.portfolio-filter ul a').removeClass('active');
                $(this).addClass('active');
                return false;
        });

        function getColumnNumber() { 
            var winWidth = $(window).width(), 
            columnNumber = 1;

            if (winWidth > 1200) {
                columnNumber = 4;
            } else if (winWidth > 950) {
                columnNumber = 3;
            } else if (winWidth > 600) {
                columnNumber = 2;
            } else if (winWidth > 400) {
                columnNumber = 2;
            } else if (winWidth > 250) {
                columnNumber = 1;
            }
                return columnNumber;
            }       

            function setColumns() {
                var winWidth = $(window).width(), 
                columnNumber = getColumnNumber(), 
                itemWidth = Math.floor(winWidth / columnNumber);

                $container.find('.item').each(function() { 
                    $(this).css( { 
                    width : itemWidth + 'px'
                });
            });
        }

        function setPortfolio() { 
            setColumns();
            $container.isotope('reLayout');
        }

        $container.imagesLoaded(function () { 
            setPortfolio();
        });

        $(window).on('resize', function () { 
        setPortfolio();          
        });

    })(jQuery);

comments