This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.addEventListener('DOMContentLoaded', function() { | |
| window.addEventListener('scroll', handleScroll) | |
| }) | |
| function handleScroll() { | |
| // Grab header | |
| const header = document.querySelector('header') | |
| // Grab mid-fold section (two siblings down from header) | |
| const midFold = header.nextElementSibling.nextElementSibling |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template></template> | |
| <script> | |
| import ListItem from '@/components/ListItem.vue'; | |
| import listData from '../data/groceryListData'; | |
| export default { | |
| name: 'GroceryList', | |
| components: { ListItem }, | |
| data() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template></template> | |
| <script lang="ts"> | |
| import Vue from 'vue'; | |
| import ListItem from '@/components/ListItem.vue'; | |
| import { ListItemModel, listData } from '../data/groceryListData'; | |
| export default Vue.extend({ | |
| name: 'GroceryList', | |
| components: { ListItem }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template></template> | |
| <script lang="ts"> | |
| import Vue from 'vue'; | |
| import Component from 'vue-class-component'; | |
| import ListItem from '@/components/ListItem.vue'; | |
| import { ListItemModel, listData } from '../data/groceryListData'; | |
| @Component({ | |
| components: { ListItem }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div> | |
| <!-- begin close button --> | |
| <div class="btn-wrapper> | |
| <button> | |
| <svg width="34" height="34" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"> | |
| <path d="M1 1L7 7M13 13L7 7M7 7L13 1L1 13" stroke="red" stroke-width="2"/> | |
| </svg> | |
| </button> | |
| </div> | |
| <!-- end close button --> |
OlderNewer