mirror of
				https://github.com/brunofontes/shareit.git
				synced 2025-11-03 19:21:03 -03:00 
			
		
		
		
	Compare commits
	
		
			2 Commits
		
	
	
		
			58fe265821
			...
			d083d45013
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| d083d45013 | |||
| 3d5e484364 | 
							
								
								
									
										465
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										465
									
								
								composer.lock
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1135
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1135
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										
											BIN
										
									
								
								public/favicon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								public/favicon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 2.2 KiB  | 
							
								
								
									
										25
									
								
								resources/js/app.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										25
									
								
								resources/js/app.js
									
									
									
									
										vendored
									
									
								
							@ -20,3 +20,28 @@ import './bootstrap';
 | 
			
		||||
// const app = new Vue({
 | 
			
		||||
//     el: '#app'
 | 
			
		||||
// });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
function setFaviconNumber(number) {
 | 
			
		||||
    var canvas = document.createElement('canvas'),
 | 
			
		||||
        ctx,
 | 
			
		||||
        img = document.createElement('img'),
 | 
			
		||||
        link = document.getElementById('favicon').cloneNode(true);
 | 
			
		||||
 | 
			
		||||
    if (canvas.getContext) {
 | 
			
		||||
      canvas.height = canvas.width = 48; // set the size
 | 
			
		||||
      ctx = canvas.getContext('2d');
 | 
			
		||||
      img.onload = function () { // once the image has loaded
 | 
			
		||||
        ctx.drawImage(this, 0, 0);
 | 
			
		||||
        ctx.font = 'bold 35px "helvetica", sans-serif';
 | 
			
		||||
        ctx.fillStyle = '#ffff66';
 | 
			
		||||
        ctx.fillText(number, 3, 25);
 | 
			
		||||
        link.href = canvas.toDataURL('image/png');
 | 
			
		||||
        document.body.appendChild(link);
 | 
			
		||||
      };
 | 
			
		||||
      img.src = 'favicon.png';
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
usedItems = document.getElementById("usedItems").innerText;
 | 
			
		||||
setFaviconNumber(usedItems);
 | 
			
		||||
 | 
			
		||||
@ -19,9 +19,12 @@
 | 
			
		||||
 | 
			
		||||
    <!-- Styles -->
 | 
			
		||||
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
 | 
			
		||||
 | 
			
		||||
    <link id="favicon" rel="icon" type="image/png" href="favicon.png" /> 
 | 
			
		||||
</head>
 | 
			
		||||
 | 
			
		||||
<body>
 | 
			
		||||
    <div hidden id="usedItems">{{ isset($usedItems) && $usedItems > 0 ? $usedItems : '' }}</div>
 | 
			
		||||
    <div id="app">
 | 
			
		||||
        <nav class="navbar navbar-expand-md navbar-light navbar-laravel">
 | 
			
		||||
            <div class="container">
 | 
			
		||||
 | 
			
		||||
@ -5,6 +5,7 @@
 | 
			
		||||
        <meta name="viewport" content="width=device-width, initial-scale=1">
 | 
			
		||||
 | 
			
		||||
        <title>Share It</title>
 | 
			
		||||
        <link id="favicon" rel="icon" type="image/png" href="favicon.png" /> 
 | 
			
		||||
 | 
			
		||||
        <!-- Fonts -->
 | 
			
		||||
        <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet" type="text/css">
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user