{"action":"created","issue":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1072","labels_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1072/labels{/name}","comments_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1072/comments","events_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1072/events","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/1072","id":60606100,"number":1072,"title":"moveTo function not working","user":{"login":"dynamic75","id":688651,"avatar_url":"https://avatars.githubusercontent.com/u/688651?v=3","gravatar_id":"","url":"https://api.github.com/users/dynamic75","html_url":"https://github.com/dynamic75","followers_url":"https://api.github.com/users/dynamic75/followers","following_url":"https://api.github.com/users/dynamic75/following{/other_user}","gists_url":"https://api.github.com/users/dynamic75/gists{/gist_id}","starred_url":"https://api.github.com/users/dynamic75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynamic75/subscriptions","organizations_url":"https://api.github.com/users/dynamic75/orgs","repos_url":"https://api.github.com/users/dynamic75/repos","events_url":"https://api.github.com/users/dynamic75/events{/privacy}","received_events_url":"https://api.github.com/users/dynamic75/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-11T03:40:14Z","updated_at":"2015-03-11T10:37:15Z","closed_at":"2015-03-11T10:37:15Z","body":"\r\nHi Álvaro, thanks for the great plug in.\r\nI'm having a an issue with the following handler to an an anchor tag outside of the menu used for the rest of the slides (due to layout). But it's not moving the slides. I'm not sure why it doesn't work, no errors show in the console.\r\n```javascript\r\n               $('a[href=\"#home\"]').click(function(){\r\n\t\t\t$.fn.fullpage.moveTo(1);\r\n\t\t\tconsole.log(\"home link cliked\")\r\n\t\t});\r\n```\r\nHere is my mark up:\r\n<!doctype html>\r\n<!--[if lt IE 7]>      <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\" lang=\"\"> <![endif]-->\r\n<!--[if IE 7]>         <html class=\"no-js lt-ie9 lt-ie8\" lang=\"\"> <![endif]-->\r\n<!--[if IE 8]>         <html class=\"no-js lt-ie9\" lang=\"\"> <![endif]-->\r\n<!--[if gt IE 8]><!--> <html class=\"no-js\" lang=\"\"> <!--<![endif]-->\r\n    <head>\r\n        <meta charset=\"utf-8\">\r\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">\r\n        <title>dynamic75.com Home</title>\r\n        <meta name=\"description\" content=\"Dynamic75.com is the portfolio of Damian McCleod - web developer\">\r\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n        <link rel=\"apple-touch-icon\" href=\"apple-touch-icon.png\">\r\n\r\n\t\t<link href='http://fonts.googleapis.com/css?family=Bitter' rel='stylesheet' type='text/css'>\r\n\t\t<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>\r\n        <link rel=\"stylesheet\" href=\"css/jquery.fullPage.css\">\r\n\t\t<link rel=\"stylesheet\" href=\"css/normalize.min.css\">\r\n        <link rel=\"stylesheet\" href=\"css/main.css\">\r\n\t\t\r\n\r\n        <!--[if lt IE 9]>\r\n            <script src=\"js/vendor/html5-3.6-respond-1.4.2.min.js\"></script>\r\n        <![endif]-->\r\n    </head>\r\n    <body>\r\n        <!--[if lt IE 8]>\r\n            <p class=\"browserupgrade\">You are using an <strong>outdated</strong> browser. Please <a href=\"http://browsehappy.com/\">upgrade your browser</a> to improve your experience.</p>\r\n        <![endif]-->\r\n\r\n        <div class=\"header-container\">\r\n            <header class=\"wrapper clearfix\">\t\t\t\t\r\n                <h2 class=\"title\">\r\n\t\t\t\t\t<a href=\"#home\">\r\n\t\t\t\t\t<img src=\"/dynamic75/images/dm-logo.png\" alt=\"Home of dynamic75 - web developer\" />\r\n\t\t\t\t\t</a>\r\n\t\t\t\t</h2>\r\n                <nav>\r\n                    <ul id=\"topMenu\">\r\n                        <li data-menuanchor=\"work\"><a href=\"#work\">work</a></li>\r\n                        <li data-menuanchor=\"about\"><a href=\"#about\">about</a></li>\r\n                        <li data-menuanchor=\"contact\"><a href=\"#contact\">contact</a></li>\r\n                    </ul>\r\n                </nav>\r\n            </header>\r\n        </div>\r\n\r\n        <div class=\"main-container\">\r\n            <div class=\"main wrapper clearfix\">\r\n\t\t\t\r\n\t\t\t\t<div id=\"fullpage\">\r\n\t\t\t\t\t<section class=\"section\" data-anchor=\"home\">\r\n\t\t\t\t\t\t<div class=\"splash\">\t\t\t\t\t\r\n\t\t\t\t\t\t\t<header>\r\n\t\t\t\t\t\t\t\t<div class=\"trans-box\"></div>\r\n\t\t\t\t\t\t\t\t<h1>Hi, my name is Damian. I conceptualize, draw and code. I believe if your basics are solid, the rest is cake (preferably chocolate).</h1>\r\n\t\t\t\t\t\t\t</header>                    \r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</section>\r\n\t\t\t\t\t<section class=\"section\" data-anchor=\"work\"> \twork </section>\r\n\t\t\t\t\t<section class=\"section\" data-anchor=\"about\"> About </section>\r\n\t\t\t\t\t<section class=\"section\" data-anchor=\"contact\"> Contact </section>\r\n\t\t\t\t</div>\t\r\n\t\t\t\t\r\n            </div> <!-- #main -->\r\n        </div> <!-- #main-container -->\r\n\r\n        <div class=\"footer-container\">\r\n            <footer class=\"wrapper\">\r\n                <ul>\r\n\t\t\t\t\t<li>&copy; copyright 2015 dynamic75</li>\r\n                    <li><a href=\"#\">work</a></li>\r\n                    <li><a href=\"#\">about</a></li>\r\n                    <li><a href=\"#\">contact</a></li>\r\n                </ul>\r\n            </footer>\r\n        </div>\r\n\t\t\r\n\t\t<script src=\"https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js\" autoload=\"true\"></script>\r\n        <script src=\"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js\"></script>\r\n        <script>window.jQuery || document.write('<script src=\"js/vendor/jquery-1.11.2.min.js\"><\\/script>')</script>\r\n\r\n        <script src=\"js/plugins.js\"></script>\r\n        <script src=\"js/main.js\"></script>\r\n\t\t<script src=\"js/vendor/jquery.fullPage.min.js\"></script>\r\n\r\n\r\n        <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->\r\n        <script>\r\n            (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=\r\n            function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;\r\n            e=o.createElement(i);r=o.getElementsByTagName(i)[0];\r\n            e.src='//www.google-analytics.com/analytics.js';\r\n            r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));\r\n            ga('create','UA-XXXXX-X','auto');ga('send','pageview');\r\n        </script>\r\n    </body>\r\n</html>\r\n"},"comment":{"url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/comments/78239675","html_url":"https://github.com/alvarotrigo/fullPage.js/issues/1072#issuecomment-78239675","issue_url":"https://api.github.com/repos/alvarotrigo/fullPage.js/issues/1072","id":78239675,"user":{"login":"alvarotrigo","id":1706326,"avatar_url":"https://avatars.githubusercontent.com/u/1706326?v=3","gravatar_id":"","url":"https://api.github.com/users/alvarotrigo","html_url":"https://github.com/alvarotrigo","followers_url":"https://api.github.com/users/alvarotrigo/followers","following_url":"https://api.github.com/users/alvarotrigo/following{/other_user}","gists_url":"https://api.github.com/users/alvarotrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarotrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarotrigo/subscriptions","organizations_url":"https://api.github.com/users/alvarotrigo/orgs","repos_url":"https://api.github.com/users/alvarotrigo/repos","events_url":"https://api.github.com/users/alvarotrigo/events{/privacy}","received_events_url":"https://api.github.com/users/alvarotrigo/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T10:37:15Z","updated_at":"2015-03-11T10:37:15Z","body":"You don't need to call the method moveTo if you are already using an anchor link.\r\nThe plugin will scroll just with the link."}}