btw here's my navigation

<core-scaffold id="scaffold" responsiveWidth="640px">
<core-header-panel navigation flex mode="seamed">
<core-toolbar>Navigation</core-toolbar>
<core-menu id="menu">
<core-item name="drawerPanel" icon="home" label="Home"><a 
href="#"></a></core-item>
<core-item name="about" icon="account-circle" label="Who"></core-item>
<core-item name="works" icon="work" label="Works"></core-item>
<core-item name="skills-cont" icon="gesture" label="Skills" 
name="skills"></core-item>
<core-item name="contacts" icon="settings-phone" label="Contacts"></core-item>
<core-item name="cart" icon="shopping-cart" label="D Shop"><a href="#" 
target="_blank"></a></core-item>
<core-item name="v8" icon="link" label="v8"><a href="" 
target="_blank"></a></core-item>
<core-item name="v7" icon="link" label="v7"><a href="" 
target="_blank"></a></core-item>
<core-item name="v6" icon="link" label="v6"><a href="" 
target="_blank"></a></core-item>
</core-menu>


<div id="about">
<about-koh></about-koh>
</div>


<div id="works">
<works></works>
</div>

....




On Friday, November 14, 2014 11:05:29 AM UTC+8, Gee Jay Almestas wrote:
>
> Hi, im having problem with my js script im using firefox 33.1 only* i 
> don't get any error using chrome*
>
> *here's my script "problem highlighted"*
> <script>
>     
>     var scraffold = document.getElementById('scaffold');
>     var menu = document.getElementById('menu');
>     
>     menu.addEventListener('core-select', function(e) {
>       if (e.detail.isSelected) {
>         scrollToSection(e.detail.item.getAttribute('name'));
>       }
>     });
>     
>     function scrollToSection(id) {
>       var section = document.getElementById(id);
>       if (section) {
>         scaffold.$.headerPanel.scroller.scrollTop = section.offsetTop;
>       }
>     }
>   
>   </script>
>
>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/f9f370c8-caa5-4414-92b5-be4772d1a009%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to