jessewebb / csgo-buynds

CS:GO Buy Binds Generator
http://csgobuynds.com
Other
106 stars 15 forks source link

Provide an embedding feature #1

Open DieQuelle opened 10 years ago

DieQuelle commented 10 years ago

iframe or js whatever, or can i copy your stuff with backlink to this github

jessewebb commented 10 years ago

Anyone is free to copy, modify, etc. this code, it is available under the MIT License. If you do make any improvements to the code, I would love to see them come back as a Pull Request.

If you don't want to copy/fork, I can look into options for allowing embedding more cleanly. Currently, you could reference the code from the website or this GitHub repository but it wouldn't be very clean. You could easily use similar code as found on the buy-binds-generator.html page to add a Buy Binds Generator to your website. For example, something like this would work:

<html>
<head>
    <title>Your Page</title>
    <link href="http://jessewebb.github.io/csgo-buynds/vendor/bootstrap-3.1.1/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="http://jessewebb.github.io/csgo-buynds/vendor/bootstrap-3.1.1/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css">
    <link href="http://jessewebb.github.io/csgo-buynds/css/app.css" rel="stylesheet" type="text/css">
</head>
<body>

<div class="container" ng-app="buyndsApp">
    <h1>CS:GO Buy Binds Generator</h1>
    <div class="row">
        <div class="col-sm-12">
            <ul class="nav nav-pills">
                <li active-class="active"><a href="#/">Multi-Key Generator</a></li>
                <li active-class="active"><a href="#/skg">Single-Key Generator</a></li>
            </ul>
            <div ng-view></div>
        </div>
    </div>
    <div class="footer">
        <span><small>Copyright &copy; 2014 Jesse Webb</small></span>
        <span><small>Powered by <a href="http://jessewebb.github.io/csgo-buynds/">CSGO-Buynds</a></small></span>
    </div>
</div>

<script src="http://jessewebb.github.io/csgo-buynds/vendor/jquery-2.1.0/jquery.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/bootstrap-3.1.1/js/bootstrap.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/angular-1.2.14/angular.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/angular-1.2.14/angular-route.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/angular-ui/ui-bootstrap-0.10.0/ui-bootstrap-tpls-0.10.0.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/ng-clip-0.1.3/ng-clip.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/vendor/zeroclipboard-1.3.5/ZeroClipboard.min.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/buynds.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/app.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/controllers.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/directives.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/filters.js" type="text/javascript"></script>
<script src="http://jessewebb.github.io/csgo-buynds/js/services.js" type="text/javascript"></script>
</body>
</html>

Just remember though that this project is still a work in progress and there will very likely be breaking changes to the API as I move toward version 1.0.

DieQuelle commented 10 years ago

Hey, I tried your code above, but it won't work.

Could you help me with it?