Skip to content

Commit

Permalink
Place an annoucment for new upcoming release
Browse files Browse the repository at this point in the history
  • Loading branch information
miled committed Sep 12, 2020
1 parent 7c43222 commit 0e2e07c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
$(function () {
prettyPrint()
prettyPrint();

// why so sad :)
$('body').append( '<a href="https://github.com/miled/wordpress-social-login" target="_blank"><img alt="Fork me on GitHub" style="position: fixed; z-index: 2; border: 0pt none; margin: 0pt; padding: 0pt; right: 7px; top: 69px;" src="http://miled.github.io/wordpress-social-login/assets/img/github.png" /></a><a href="https://wordpress.org/support/view/plugin-reviews/wordpress-social-login#postform" target="_blank"><img alt="Fork me on GitHub" style="position: fixed; z-index: 2; border: 0pt none; margin: 0pt; padding: 0pt; right: 15px; top: 125px;" src="http://miled.github.io/wordpress-social-login/assets/img/rate.png" /></a>' )

// am lazy p
$('#content img').each(function() {
$(this).wrap("<a target='_blank' href='" + $(this).attr("src") + "'</a>")
})

// $('#content').prepend( '<div class="alert alert-warning"><h4 style="border: 0px none;">Information:</h4><p style="line-height: 24px;">This documentation has been updated to reflect the latest changes on the coming release <b>2.2.3</b> and things are siltly different from the current version <b>2.2.2</b>.<br />For more information, refer to <a href="https://github.com/miled/wordpress-social-login#whats-new-on-wsl-223" target="_blank">https://github.com/miled/wordpress-social-login#whats-new-on-wsl-223</a>.</p></div>' )
$('#content').prepend( '<div class="alert alert-success" style="border: 0 none; background-color: #21b2a6;"><p style=" color: #fff; line-height: 24px; text-align:center; margin-bottom: 0px;"><b style="border: 0px none; margin-top:0;">Announcing an upcoming major release:</b><br />A <span style="color: #c7254e">beta</span> update of WordPress Social Login 3.0.3 is currently available for <a href="http://miled.github.io/wordpress-social-login/betas/wordpress-social-login-3.0.3.zip" style="color: white; text-decoration: underline;">Download</a>.<br />Feedback and bug fixes are welcome either on <a href="https://github.com/miled/wordpress-social-login" target="_blank" style="color: white; text-decoration: underline;">Github</a> or in the discussion thread at <a href="https://wordpress.org/support/topic/announcing-new-upcoming-release/" target="_blank" style="color: white; text-decoration: underline;">Wordpress.org</a></span>.</div>' )

return
//-

window.addEventListener("scroll", function() {
if ( window.scrollY > 500 ) {
if ( window.scrollY > 50 ) {
$('.navbar').css( 'opacity', 0.8 )
}
else {
Expand Down
1 change: 1 addition & 0 deletions documentation.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/prettify.js"></script>
<script type="text/javascript" src="assets/js/script.js"></script>
</head>
<body id="documentation">
<header>
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/prettify.js"></script>
<script type="text/javascript" src="assets/js/script.js"></script>
</head>
<body>
<header>
Expand Down
1 change: 1 addition & 0 deletions overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/js/prettify.js"></script>
<script type="text/javascript" src="assets/js/script.js"></script>
</head>
<body id="documentation">
<header>
Expand Down

0 comments on commit 0e2e07c

Please sign in to comment.