{"id":18426018,"url":"https://github.com/tinusw/workexamples","last_synced_at":"2025-08-10T22:11:29.438Z","repository":{"id":208996752,"uuid":"58420086","full_name":"Tinusw/workExamples","owner":"Tinusw","description":"Just a few examples of code that I liked and enjoyed figuring out. More Web Dev orientated.","archived":false,"fork":false,"pushed_at":"2016-05-10T01:40:49.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-24T19:43:27.772Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tinusw.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-10T01:31:02.000Z","updated_at":"2016-05-10T01:32:18.000Z","dependencies_parsed_at":"2023-11-24T12:49:34.362Z","dependency_job_id":null,"html_url":"https://github.com/Tinusw/workExamples","commit_stats":null,"previous_names":["tinusw/workexamples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinusw%2FworkExamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinusw%2FworkExamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinusw%2FworkExamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tinusw%2FworkExamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tinusw","download_url":"https://codeload.github.com/Tinusw/workExamples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239104786,"owners_count":19582375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T05:06:39.040Z","updated_at":"2025-02-16T08:20:32.085Z","avatar_url":"https://github.com/Tinusw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example 1 - Sidebar Toggle using pure CSS!  \n====================\nhttps://jsfiddle.net/0esfLscc/4/\n\nImplimented here :   \n---------------------\nhttps://ancient-ocean-10077.herokuapp.com/  \nhttps://github.com/Tinusw/RubyEcommerceSite  \n\n\n- Just a cool example of how you can use the toggle state of a checkbox to trigger css position changes! Well....any changes actually. No jquery needed!\n\n- Only niggle I had to deal with is that you generally have to wrap the rest of your page content inside of one 'page-content' div so that content will shift to the side when you open the sidebar instead of covering content. Kinda irritating especially when you have a large project.\n\n- Thanks to Travis Neilson for turning me onto this though. (Check his youtube channel DevTips, honestly.)\n\nExample 2 - Using jquery to simplify adding html elements\n====================  \nhttp://designer-cut-30258.bitballoon.com/#workCont    \n\nImplimented here :  \n---------------------\nhttp://designer-cut-30258.bitballoon.com/#workCont  \nhttps://github.com/Tinusw/ResponsiveWebsite  \n\n- Using a jquery varialbes to add content, and to add new divs with said content simply by adding to the var\n\n- Saves you having to manually add html elements for each new item on a site. Instead you can simply save them in an array, and jquery will populate it for you!\n\n- Combo that with bootstrap classes and you'll be able to update an informational site relatively stress free.\n\nExample 3 - Data Validation (Email form example)\n====================  \nhttps://jsfiddle.net/uw188pdg/7/  \n\nImplimented here :  \n--------------------- \nhttp://designer-cut-30258.bitballoon.com/#contactCont  \nhttps://github.com/Tinusw/ResponsiveWebsite  \n\n- So really just a few more muscle flexing jquery ideas:\n\n- A running charachter count for the email message body, just ensuring there is content, and also turning red to notify user once he's gone over an acceptable threshold\n\n- Input validation to show a user what needs to be completed for an email to be successfully sent.\n\n- I'm also using a really funky little email validation method that kinda befuddles me. But as far as I can determine it's a version of the addr-spec, which is an internet specific email identifier, and all email addresses need to adhere to it.\n\n- I think there are more hardcore versions of the regular expression out there, but for my purposes that did the job. More here :\nhttps://tools.ietf.org/html/rfc2822#section-3.4.1\n\n- Confirmation message is then shown to a user and input fields are hidden once the message/name/email subscribes to our needs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinusw%2Fworkexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinusw%2Fworkexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinusw%2Fworkexamples/lists"}