This plugin shows edX and OPEN edX logos at browser console.
First, load the plugin:
<script src="edx_logo.js" type="text/javascript"></script>
Now the edx_logo
and open_edx_logo
functions are embedded into console object call these function using console.
###Examples
<script type="text/javascript">
console.edx_logo();
console.open_edx_logo();
</script>
##Options
-
settings:
- type Type of logo to show.
default: auto
1. auto: Auto select the type among (image, css, smalltext, bigtext) according to browser compatibility. 2. image: Image version of logo. 3. css: Css versio of logo. 4. smalltext: Text style line version of logo (old browsers). 5. bigtext: Big Text style line version of logo (old browsers).
- type Type of logo to show.
-
log_text Show text message on console.
default: false
-
url Image url of logo in case of
type:image
ortype:auto
default (edx_logo)
: https://d37djvu3ytnwxt.cloudfront.net/static/images/edx-theme/edx-header-logo.517a627deaad.png
default (open_edx_logo)
: https://files.edx.org/openedx-logos/edx-openedx-logo-tag.png -
scale Image scale for logo from 0.1 to 1
-
open_edx_only For
open_edx_logo
only if settrue
ignore thePOWERED BY
text, work only for css, smalltext, bigtext types
default: false
-
text
Text to show on console along with logo
default (edx_logo)
: Want to contribute to edX-platform ? Visit at https://github.com/edx/edx-platform
default (open_edx_logo)
: POWERED BY OPEN edX
Browser | Image | Css | Smalltext | Bigtext |
---|---|---|---|---|
Yes | Yes | Yes | Yes | |
Yes | Yes | Yes | Yes | |
Yes | Yes | Yes | Yes | |
No | V > 39 | Yes | Yes | |
No | No | Yes | Yes |
(The MIT License)