Git Product home page Git Product logo

n3m0n8 / medmatters-samplenewslettersite Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.64 MB

A newsletter site in vanilla HTML/CSS/JS/PHP with fetchapis and php-pdo-sql subscription/verification service

Home Page: https://www.medmatters.infinityfreeapp.com/

License: GNU General Public License v3.0

HTML 59.12% JavaScript 9.13% PHP 9.26% CSS 22.49%
css email-verification fetch-api html javascript news newsletter pdo-mysql php subscription

medmatters-samplenewslettersite's Introduction

medMatters-SampleNewsletterSite

A newsletter site in vanilla HTML/CSS/JS/PHP with a multiple fetchapi construct using CIA Worldfactbook & Unsplash API as well as a php-pdo-sql subscription/verification email service.

medmatters-samplenewslettersite's People

Contributors

n3m0n8 avatar

Watchers

 avatar

medmatters-samplenewslettersite's Issues

security audit

Need security audit of usual inputs for the subscription form (validate, strip, sanitise)
Ensure htaccess settings are tightened to fullest extent.

SQL record created php date format issue

the subscribe.php service is failing to correcting format the hours-minutes-seconds of the date var which is being passed via PDO to SQL's relevant field/key of record_created.

The date-month-year is coming in fine, but the h-i-s is not correctly formatted.

country profiles multi-fetch api unsplash overloading

The Country Profiles section of the website deployed a construct in which a fetch-api fetches a random unsplash photo of the relevant country, a CIA world factbook short description from a Github-based JSON of said country, and focuses an Open World Map location to that country.

Further to this, these countries are all arranged in an array, so as to allow for a previous and next buttons that traverse (and then fetch the relevant countries image/text/map on click). This can be seen in code under /services/microservices/countriesAPICaller.js

The issue is that there is a bug in the array construct. It is undertaking multiple unsplash calls when arriving at a certain point (usually mid-way) down the array, to around Italy. Another action that triggers this bug is too quickly traversing the array in either direction. The unsplash api starts fetching several, quickly successive, random images (which are indeed relevant to the country but are coming in too fast).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.