Giter Club home page Giter Club logo

safety-exit's Introduction

Safety Exit

A button to allow for a quick exit on websites dealing with sensitive content such as Domestic Violence.

Description

This plugin will insert a safety exit button onto your site. A safety exit button is ideal for websites dealing with sensitive subjects such as domestic violence, rape, child abuse and others. When the user clicks the button they will instantly redirected to a URL of your choosing and a new tab / window will be opened to a URL of your choosing.

The button is customizable with options to change the color of the button and font, pick an icon from fontawesome's free icon library, update font size, change what the button says and more features coming in the future.

Installation

  1. Search for 'Safety Exit' in the plugin directory
  2. Click install then Activate.

OR to install manually

  1. Download the plugin
  2. Upload safety-exit.zip to the wp-content/plugins/ directory
  3. Activate the plugin through the 'Plugins' menu in WordPress

Once installed and activated you will see a new menu item for "Safety Exit". That is where you can customize the button.

safety-exit's People

Contributors

tomascordero avatar

Watchers

 avatar

Forkers

89gsc honekun

safety-exit's Issues

Don't load fontawesome by default

Even if icons are disabled, the plugin loads fontawesome by default.
Ideally the frontend shouldn't load fontawesome if icons are disabled, both for performance and data privacy reasons.
Optionally it would be great to be able to select a local stylesheet for icons (since we already include a local cached fontawesome version)

Fix button accessibility

The button is currently not very accessible. It should meet AA WCAG standards at minimum. The UI should also show a warning if the user selects a font / background color combo that is not accessible.

Request URL

Add Top alignment

Request: Looking at the CSS it appears to include the class “top” to make the button hover at the top of the page rather than the bottom. The options “top left” and “top right” don’t appear in the list of options in the admin dropdown.

Can these be added?

Request link

Latest update breaks plugin pages

v1.6.2 seems to break logins via OpenID connect. Having the plugin enabled the forwarding doesn't work anymore, Instead I get an empty page with just the safety exit button
It seems like this issue is not connected to OpenID-Connet in any way, I've noticed the same issue on other pages such as our sitemap.
grafik

The only error in the logfiles are

[23-Dec-2022 10:30:19] WARNING: [pool www] child 12416 said into stderr: "[23-Dec-2022 09:30:19 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/virtual/*/html/wp-includes/s
cript-loader.php:2472) in /var/www/virtual/*/html/wp-includes/pluggable.php on line 1416"
[23-Dec-2022 10:30:19] WARNING: [pool www] child 12416 said into stderr: "[23-Dec-2022 09:30:19 UTC] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/virtual/*/html/wp-includes/s
cript-loader.php:2472) in /var/www/virtual/*/html/wp-includes/pluggable.php on line 1419"

There are no additional errors.

Lock visitor IP for limited time

Request: Add IP blocking for visitors who activate the safety exit button on the domestic violence website. This will provide added security for victims and prevent violators from accessing the website.

Request link

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.