Fixed Sticky Header Primer Tutorial
โœ‚๐Ÿƒ๐Ÿพโ€โ™€๏ธ๐Ÿƒ๐Ÿผโ€โ™‚๏ธ
๐Ÿ“–

Fixed Sticky Header Primer Tutorial

Fixed Sticky Header Primer Tutorial

Just like with the W3schools How To series inspired HTML and Javascript and CSS Survey Levelling Tutorial we have another W3schools inspired web application idea called โ€œSticky Headerโ€.

To quote W3schools regarding the design aspects to the fixed_topโšซhtml โ€œproof of conceptโ€ webโœ‚application โ€ฆ

On Scroll Sticky Header
The header will stick to the top when you reach its scroll position.
Scroll back up to remove the sticky effect.

Which takes us to what we wanted to try as an inhouse addition to functionality. We like emojis, as โ€œtext meets button designโ€. Hence, we also like the โ€œtextโ€ emoji being like an โ€œaโ€ link โ€œbuttonโ€, for two biggish reasons โ€ฆ

  • emoji buttons save space
  • emoji buttons can look like images that can attract user attention, and be like an Internationizational improvement to your web application, given some careful consideration

โ€ฆ that lead us to want to have the โ€œSticky Headerโ€ contain an โ€œemoji menuโ€ of โ€œemoji buttonsโ€, the โ€œonclickโ€ events of which show content below the โ€œSticky Headerโ€ in a one row table that pushes the latest content to the left of that row (so that our hashtagging logic will still see the emojis along with the latest selected content), yet allow an intrepid user venture right to โ€œuncontrolled lands of functionalityโ€ should they wish. Weโ€™re sticking left โ€ฆ chortle, chortle.



Previous relevant HTML and Javascript and CSS Survey Levelling Tutorial is shown below.

HTML and Javascript and CSS Survey Levelling Tutorial

HTML and Javascript and CSS Survey Levelling Tutorial

With the โ€œterrestrialโ€ side to Land Surveying (ie. that of the small distances kind), two โ€œget out there and do itโ€ skills spring to mind, those being โ€ฆ

  • performing a traverse via the use of a theodolite (or โ€œtotal stationโ€) (as the web application works the mathematics of, off the field book, with the previous HTML and Javascript and CSS Survey Traverse Tutorial) working out the (โ€œXโ€,โ€Yโ€) of 2D โ€œlifeโ€ โ€ฆ and today, we add to that with โ€ฆ
  • performing a levelling run via the use of a level (or โ€œtotal stationโ€) โ€ฆ

โ€ฆ and with todayโ€™s web application we simulate, to some degree, minus โ€œhow to level a levelโ€, looking through the โ€œlevelโ€ viewer towards a โ€œsurveying staffโ€ (held level and straight) on a point of something you want to know the elevation (or (3D โ€œlifeโ€) โ€œZโ€) of in terrestrial terms, relative to known elevations you will probably want to start pointing at (the โ€œsurveying staffโ€ being on) with your first (often a known โ€œdatumโ€) โ€ฆ

  • Backsight โ€ฆ then โ€ฆ
  • (however many Inter Sights followed by a) Foresight (and then back to Backsight, as necessary)

โ€ฆ series of measurements (or โ€œreadingโ€) to derive โ€œreduced levelsโ€ for each point the โ€œsurveying staffโ€ visits. This, in most practice, involves alternately leapfrogging (each other, at different times) โ€ฆ

  • Land Surveyor recording and levelling the โ€œlevelโ€ โ€ฆ and a โ€ฆ
  • Chainperson levelling and straightening the โ€œsurveying staffโ€

โ€ฆ the โ€œsurveying staffโ€ we simulate in our web application (somewhat) thanks to Cody.

Thatโ€™s the โ€œwhatโ€ of the web application, but what about the โ€œhowโ€ (let alone the who)? Here, we thank the great W3schools parallax ideas.

The โ€œcentral CSS smartโ€ of these parallax ideas is the idea of โ€ฆ



<style>

/* Create the parallax scrolling effect */

background-attachment: fixed;

background-position: center;

background-repeat: no-repeat;

background-size: contain;

</style>

So take a look at parallax_exampleโšซhtmlโ€˜s liveโœ‚run link to see what we mean.


Previous relevant HTML and Javascript and CSS Survey Traverse Tutorial is shown below.

HTML and Javascript and CSS Survey Traverse Tutorial

HTML and Javascript and CSS Survey Traverse Tutorial

Here is a tutorial showing some client-side basics in HTML and Javascript and CSS all in the one HTML file, to simplify concepts. The tutorial subject matter is a webpage to perform Survey Traverse calculations. A Survey Traverse is:

Traverse is a method in the field of surveying to establish control networks.[1] It is also used in geodesy. Traverse networks involve placing survey stations along a line or path of travel, and then using the previously surveyed points as a base for observing the next point. Traverse networks have many advantages, including:

Less reconnaissance and organization needed;
While in other systems, which may require the survey to be performed along a rigid polygon shape, the traverse can change to any shape and thus can accommodate a great deal of different terrains;
Only a few observations need to be taken at each station, whereas in other survey networks a great deal of angular and linear observations need to be made and considered;
Traverse networks are free of the strength of figure considerations that happen in triangular systems;
Scale error does not add up as the traverse is performed. Azimuth swing errors can also be reduced by increasing the distance between stations.

The traverse is more accurate than triangulateration[2] (a combined function of the triangulation and trilateration practice).[3]

Letโ€™s see some simple HTML in action in a tutorial โ€ฆ

Link to HTML โ€œspiritual homeโ€ โ€ฆ at W3Schools has many tutorials.
Link to Survey Traverse live run โ€ฆ here.
Link to Survey Traverse live run (additional Google Line Chart functionality) here.
Link to Survey Traverse information โ€ฆ from Wikipedia from which quote above comes.
Link to some downloadable HTML code โ€ฆ rename to SurveyTraverseโšซhtml which packages up a lot of Javascript and a little bit of CSS โ€ฆ or JaCvasScriptS โ€ฆ not sure whether this would ever catch on.
Link to some downloadable PHP programming code (additional Google Line Chart functionality) โ€ฆ rename to SurveyTraverseโšซphp

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Event-Driven Programming, Tutorials and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *