Use settings to control youtube live conference
This commit is contained in:
		@@ -4,8 +4,10 @@
 | 
			
		||||
{% block head %}
 | 
			
		||||
    <script>
 | 
			
		||||
        $(function() {
 | 
			
		||||
            // Show modal for live youtube confrence
 | 
			
		||||
            // $('#liveModal').modal('show')''
 | 
			
		||||
            // Show modal for live youtube conference
 | 
			
		||||
            {% if youtube %}
 | 
			
		||||
                $('#liveModal').modal('show');
 | 
			
		||||
            {% endif %}
 | 
			
		||||
 | 
			
		||||
            $('#top').click(function() {
 | 
			
		||||
                $("html, body").animate({ scrollTop: 0 }, "slow");
 | 
			
		||||
@@ -218,22 +220,24 @@
 | 
			
		||||
        </a>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div id="liveModal" class="modal" tabindex="-1" role="dialog">
 | 
			
		||||
        <div class="modal-dialog modal-lg" role="document">
 | 
			
		||||
            <div class="modal-content">
 | 
			
		||||
                <div class="modal-header">
 | 
			
		||||
                    <h5 class="modal-title" id="exampleModalLabel"><i class="fa fa-circle text-danger"></i> Live Conference</h5>
 | 
			
		||||
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 | 
			
		||||
                        <span aria-hidden="true">×</span>
 | 
			
		||||
                    </button>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="modal-body">
 | 
			
		||||
                    <iframe width="100%" height="400px" src="" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="modal-footer">
 | 
			
		||||
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
 | 
			
		||||
    {% if youtube %}
 | 
			
		||||
        <div id="liveModal" class="modal" tabindex="-1" role="dialog">
 | 
			
		||||
            <div class="modal-dialog modal-lg" role="document">
 | 
			
		||||
                <div class="modal-content">
 | 
			
		||||
                    <div class="modal-header">
 | 
			
		||||
                        <h5 class="modal-title" id="exampleModalLabel"><i class="fa fa-circle text-danger"></i> Live Conference</h5>
 | 
			
		||||
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
 | 
			
		||||
                            <span aria-hidden="true">×</span>
 | 
			
		||||
                        </button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="modal-body">
 | 
			
		||||
                        <iframe width="100%" height="400px" src="{{ youtube }}" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
 | 
			
		||||
                    </div>
 | 
			
		||||
                    <div class="modal-footer">
 | 
			
		||||
                        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
            </div>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
    {% endif %}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
		Reference in New Issue
	
	Block a user