On Wednesday, March 27, 2013 8:28:25 PM UTC+7, Vivien wrote: > On 27/03/2013 07:18, Wiratama D.C. wrote: > > > Hi, is it possible to make a custom added home screen in gaia? > > > For now, I know there are two special page, one is the 'everything.me' and > > the other one is the 'landing-page'. I want to add another page, let's > > called it the 'extra-page' for now. > > > > If you're hacking locally you can write your own homescreen by tweaking > > the settings that define which homescreen to start. See the --homescreen > > parameter ib $GAIA/build/Makefile > > > > Actually I don't want to create another homescreen to start with, I just need to modify the existing homescreen to add another one page. Is it not possible to modify the current homescreen in gaia to add one extra page? Thanks.
> > I have been trying to insert it as a new div in the homescreen/index.html, > > but when I did, the homescreen stopped working and stuck at the landing > > page with overlay on top of it and cannot slide to other page. The error at > > the jsconsole is: > > > Timestamp: 03/27/2013 01:15:16 PM > > > Warning: ReferenceError: reference to undefined property evt.preventPanning > > > Source File: http://homescreen.gaiamobile.org:8080/js/grid.js > > > Line: 185 > > > > > > From what I have seen, looks like the added screen is not registered in > > the grid.js, so it failed to call the evt. Is there some kind of help for > > this? Thanks. > > > > > > *The insertion in the index.html: > > > <div id="landing-page" data-current-page="true"> > > > <div id="landing-time"> > > > <p id="landing-clock"> > > > <span class="numbers"></span> > > > <span class="meridiem"></span> > > > </p> > > > <p id="landing-date"></p> > > > <p>First!</p> > > > </div> > > > </div> -->this is the landing-page > > > > > > <div id="extra-page" data-current-page="false"> > > > <div id="landing-time"> > > > <p id="landing-clock"> > > > <span class="numbers"></span> > > > <span class="meridiem"></span> > > > </p> > > > <p id="landing-date"></p> > > > <p>Second!</p> > > > </div> > > > </div> -->this is the added extra-page > > > _______________________________________________ > > > dev-b2g mailing list > > > [email protected] > > > https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
