8.29. Foundation Joyride

发布时间 :2025-10-25 12:24:34 UTC      

Joyride is the JavaScript effect of a feature wizard. An example is created as follows:

8.29.1. Example

<!-- Elements that control the tour stops -->
<h3 id="first">First stop!</h3>
<h3 id="second">Second stop!</h3>
<!-- The joyride: must be placed at the bottom of your page, but inside
<body> -->
<ol class="joyride-list" data-joyride>
  <li data-id="first">
    <p>First stop. The ride has begun!</p>
  </li>
  <li data-id="second">
    <h4>Second Stop</h4>
    <p>Any valid HTML will work inside the Joyride.</p>
  </li>
  <li data-button="End">
    <h4>End Stop</h4>
    <p>The tour is over. You can either go back to the previous stop or
close it.</p>
  </li>
</ol>
<!-- Start Joyride Upon Initialization -->
<script>
$(document).ready(function() {
    $(document).foundation('joyride', 'start');
})
</script>

尝试一下 »

Case analysis

In the above example, we created two elements, each with a separate ID. The two elements set the start and end positions of the joyride.

We’re here <ol> Or <ul> Add on the element data-joyride Properties and .joyride-list Class to create a joyride. You need to define it in the head of the document (in <body> The head inside). Use on each list <li> Element, each element is added data-id="value" Property. Attribute of value Must be the same as the id of the previous element. So the first function navigation <h3> The element using id= “first” must be consistent with the data-id= “first” value of the < li > element.

If you do not manage the stopped id, a modal box will be displayed.

Finally, Joyride needs to initialize it with JavaScript, with the code: $(document).foundation('joyride', 'start');

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.