mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-06-23 17:20:43 +00:00
button: refactor for a11y #372
This commit is contained in:
parent
322bf829bc
commit
39b8347b1f
8 changed files with 76 additions and 26 deletions
static/js
|
@ -223,7 +223,7 @@ var variants = {
|
|||
}
|
||||
},
|
||||
|
||||
generator: function( vargenerator, vardownload, varreset ){
|
||||
generator: function( vargenerator ){
|
||||
var graphDefinition = this.generateGraph();
|
||||
var graphs = document.querySelectorAll( vargenerator );
|
||||
graphs.forEach( function( e ){ e.innerHTML = graphDefinition; });
|
||||
|
@ -234,12 +234,6 @@ var variants = {
|
|||
this.styleGraph();
|
||||
}
|
||||
}.bind( this ), 25 );
|
||||
|
||||
var downloads = document.querySelectorAll( vardownload );
|
||||
downloads.forEach( function( e ){ e.addEventListener('click', this.getStylesheet.bind( this )); }.bind( this ) );
|
||||
|
||||
var resets = document.querySelectorAll( varreset );
|
||||
resets.forEach( function( e ){ e.addEventListener('click', this.resetVariant.bind( this )); }.bind( this ) );
|
||||
},
|
||||
|
||||
download: function(data, mimetype, filename){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue