include webfont
This commit is contained in:
		@@ -57,16 +57,14 @@
 | 
				
			|||||||
        };
 | 
					        };
 | 
				
			||||||
    </script>
 | 
					    </script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!--
 | 
					 | 
				
			||||||
    <style>
 | 
					    <style>
 | 
				
			||||||
        * {padding: 0; margin: 0}
 | 
					        * {padding: 0; margin: 0}
 | 
				
			||||||
        @font-face {
 | 
					        @font-face {
 | 
				
			||||||
            font-family: "Wizzta";
 | 
					            font-family: "Wizzta";
 | 
				
			||||||
            src: url("/js-cardgame/wizzta-vada-webfont.woff2") format("woff2"),
 | 
					            src: url("/js-cardgame/font/wizzta-vada-webfont.woff2") format("woff2"),
 | 
				
			||||||
                 url("/js-cardgame/wizzta-vada-webfont.woff") format("woff");
 | 
					                 url("/js-cardgame/font/wizzta-vada-webfont.woff") format("woff");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    </style>
 | 
					    </style>
 | 
				
			||||||
-->
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -28,6 +28,20 @@ def css(req, resp, file):
 | 
				
			|||||||
        resp.content = fin.read()
 | 
					        resp.content = fin.read()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					@api.route("/js-cardgame/font/{file}")
 | 
				
			||||||
 | 
					def css(req, resp, file):
 | 
				
			||||||
 | 
					    resp.headers['Content-Type'] = 'application/octet-stream'
 | 
				
			||||||
 | 
					    full_file = os.path.join(
 | 
				
			||||||
 | 
					        os.path.dirname(__file__),
 | 
				
			||||||
 | 
					        '..',
 | 
				
			||||||
 | 
					        'js-cardgame',
 | 
				
			||||||
 | 
					        file
 | 
				
			||||||
 | 
					    )
 | 
				
			||||||
 | 
					    with open(full_file, 'rb') as fin:
 | 
				
			||||||
 | 
					        resp.content = fin.read()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@api.route("/js-cardgame/js/{file}")
 | 
					@api.route("/js-cardgame/js/{file}")
 | 
				
			||||||
def css(req, resp, file):
 | 
					def css(req, resp, file):
 | 
				
			||||||
    resp.headers['Content-Type'] = 'application/javascript'
 | 
					    resp.headers['Content-Type'] = 'application/javascript'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user