tjc2125
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 5003 Section 04 Final Project: ## Designing a Mental Health Support Webpage for TC Students ## Midterm Codepen URL: https://codepen.io/kh3111/pen/GRMrPVp?editors=1100 ## Final Codepen URL: https://codepen.io/kh3111/collab/QWMWJqa ## Team Members: * Kelly Huang (kh3111) * Chris Lapp (cl3431) * Dorothy Licorish * Titus Chen (tjc2125) ### **Problem to Solve:** :::info Recent research literature concludes that the long-lasting social and political effects of battling COVID-19 have negatively impacted higher education students. Researchers "...highlight the urgent need to develop interventions and preventive strategies to address the mental health of college students." (Son et al., 2020) Our solution was to develop additional webpages (hypothetically) attached to the [**Teacher's College Health & Wellness site**](https://www.tc.columbia.edu/studentwellness/) and specifically dedicated to mental health support. As a web application we created an ***experience*** comprised of: 1. **Breathing Circle Visualizer** consisting of several CSS animations and key frames 2. **To-Do list interface** that gets, sets, and acts upon user inputs (conditional for-loops) 3. **Buttons to an audio playlist** which includes dynamic feedback of elapsed audio time 4. **Links to relevant Resources on other pages** 5. **A Chat Box** for users to seek help when needed Our final project reflects a comprehensive improvement upon our [**mid-term submission**](https://hackmd.io/sjzJKo6KTdOYStN2_CuDqg) that incorporates JavaScript interactivity we learned about in the second half of the semester. You can best understand our learning in terms of the midterm submission (before learning JS) and final submission (after) states that we'll reflect upon below: ::: ### Reflections on Learning Web Interaction: #### Overall Layout: > **MIDTERM:** We separated our **Helpers** and **Resources** sections with a `hr` and used `a name` and `a href` for simple in-page jumping because we did not understand how to navigate to different pages (or at least create the appearance of doing so) based on interactivity. :::success **FINAL:** With the application of various Event Listeners, Triggers and Handlers, we were able to apply the functionality that was lacking. For example, - Use of a `window.onload` function and `.hidden` conditions in JavaScript bring users to just the Breathing Circle Visualizer. The other pages are *deliberately hidden* at first. - In this manner we encourage users to take a brief pause from their hectic realities and pay attention to their breath with a soothing animation and can click to move on when ready. - Instead of coding all the`onclick` Event Listeners in HTML, we experimented with coding that in conjunction with the `.hidden` property in the JavaScript panel. - With Global Event Handlers and documentation on `window.onload`- [**courtesy of MDN Web Docs**](https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onload)- we objectified the different pages (e.g. `homePage` element -> `homePageEl`) - We applied functions to change the `.hidden` properties of these different objects based on additional Events after `window.onload` - Other `onclick` Event Triggers are found in HTML that determine how to hide/show other pages, leaving the user an impression that they are jumping to a different page. ::: #### To-Do List: > **MIDTERM:** We developed the containers for this Component with the help of Bootstrap styling but at this point in time our To-Do list was static and therefore cosmetic. :::success **FINAL:** Our To-Do list now represents our understanding of `if/else` conditions, for loops using traditional `(var i = 0; i < data.length; i++)` notation, several data manipulation methods and the syntax used to locate elements for the Document Object Model. Users can also type in, complete, and delete a task. We added functional buttons for add task, delete completed task, and complete all task.The CSS of the completed task will change once the user clicks on the checkbox as well. * In reference to Jin's lecture and FCCs we applied the `.push()` and `.filter()` methods to add/remove objects into/from arrays. We also referenced how to create unique IDs with `date.now()` * But we also practiced our own iterations of nesting loops under functions (e.g. CodePen lines 95-99) * We had to get creative with the code to change the CSS of the completed items because the unique id of each object is linked to the `input` element. Therefore, we had to learn how to call the sibling of the `input` element to change the CSS. * We also learned how to set attributes to each element to disable the checkbox and enable the checkmark `onclick`. Without setting the attribute, the checkmark would appear when someone clicks on it, but it would not stay if someone adds another task. ::: #### Sleep Audio: > **MIDTERM:** Use of the Collapse Accordion feature in Bootstrap created a static list of possible audio sources. :::success **FINAL:** * We attached a fully-functioning MP3 Player element that contains audiobooks, meditation monologues, and ambient sounds. * On line 151 in the Javascript panel, a function called createTrackItem uses document.queryselector to display the name of a track listed in the array on line 183. * The play button uses a boolean on lines 158 to 161 in order to switch from pause to play when clicked. * In order for certain elements to react to the length of the song, like the progress bar, remaining minutes, or the user clicking on the progress bar, a variable called 'trackDurationitem' had to be made which would track the length of the song using the function getMinutes, and dictate the length of the song for all other functions using 'trackDurationitem' * An array was used on lines 181 to 277 to list the songs and thier url sources instead of linking the audio in the HTML, as was done in the midterm. * The variable currentAudio was referred to whenever a function needed to reference the song being played. For example, the fast forward and rewind buttons on lines 352 - 360 use 'currentAudio.currentTime -/+ 5' to skip forward or back in the song. * Starting from line 300 in the JavaScript panel, the elapsed time of each audio file was represented through functions `onTimeUpdate()`, `setBarProgress()`, and `getMinutes(t)` * `onTimeUpdate` was used to cause the music player to play the next track after a certain track was finished. * `setBarProgress` allowed the progress bar to indicate how much of the audio had been played. * `getMinutes` was used to display how many minutes had elapsed in the song, and how many minutes were remaining. * Finally, the mute button uses an if else statement to decide whether or not to let the volume of the song play at 0 or not. * If I had more time on this project, I would have added a volume slider and a sleep timer for 15, 30, or 60 minutes. ::: #### Chat-box: > **MIDTERM:** Simple use of a Booststrap stylesheet as a static button :::success **FINAL:** We quickly recognized that even with our learning of JavaScript, storing user inputs in a server using JQuery, etc. was beyond the scope of our coursework. However JS was added to create a simple response generator. * When we first run the function it checks to make sure that the text input box is not blank. If it is not blank then the rest of the function will execute. With `if/else` statements it is determining the correct response for each answer the user inputs. * The chat box is designed similarily to a robocall where there is an auto response prompted once the user answers the question. By asking specific questions then the response can be customized to the users. * Questions are stored in an array which is defined as `var clinicianPrompt`. * A counter was initially set at 0. * Each time time the user hits submit, the counter increased so that the next question is pulled from the array. * Once it has gone through all of the questions and responses, an if statement prevents the user from inputting any more information. ::: #### Search Bar: > **MIDTERM:** Search bar was static and had no functionality. :::success **FINAL:** For the final, once the user inputs data into the search box and hits submit, it activates an on-click function call searchFunction which concatenates a google url search string to the input value. * Then the `window.open` function is used to open a new tab for the google search. * The search results are limited to the nimh.gov website by inclusion of the following string as part of the google url-site%3Ahttps%3A%2F%2Fwww.nimh.nih.gov

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully