first playground parsing the CSS names
This commit is contained in:
		
							parent
							
								
									011e4cdf64
								
							
						
					
					
						commit
						a72aacb504
					
				
					 1 changed files with 13 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								detector.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								detector.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | ||||||
|  | (function($) { | ||||||
|  | 	'use strict'; | ||||||
|  | 	$(document).ready(function() { | ||||||
|  | 		console.log('detector'); | ||||||
|  | 		var uhrCSSs = $('link[rel=stylesheet][href^=uhr-]'); | ||||||
|  | 		for (var i = 0; i < uhrCSSs.length; i++) { | ||||||
|  | 			var name = $(uhrCSSs[i]).attr('href'); | ||||||
|  | 			var matcher = /^(.*)uhr-(.+).css$/; | ||||||
|  | 			var code = name.match(matcher)[2]; | ||||||
|  | 			console.log(name+": "+code); | ||||||
|  | 		} | ||||||
|  | 	}); | ||||||
|  | })(jQuery); | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue