files tree made better.
This commit is contained in:
parent
ffbf032480
commit
ccc91bbf19
1630 changed files with 18209 additions and 41860 deletions
59
src/Yavsc/Views/Home/Chat.cshtml
Normal file
59
src/Yavsc/Views/Home/Chat.cshtml
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
@{ ViewBag.Title = "Chat"; }
|
||||
<h2>Chat </h2>
|
||||
<label><input type="checkbox" id="mute" />Muet</label>
|
||||
|
||||
<div class="container" id="chatview" class="disabled" >
|
||||
<input type="hidden" id="displayname" />
|
||||
<div class="panel">
|
||||
<em>Salons</em>
|
||||
<ul>
|
||||
<li id="pubChan"><button>Public</button></li>
|
||||
</ul>
|
||||
<em>Utilisateurs</em>
|
||||
<ul id="userlist" style="list-style:none;">
|
||||
</ul>
|
||||
<ul id="discussion">
|
||||
</ul>
|
||||
<div id="targets" >
|
||||
<div id="sendmessagebox">
|
||||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class='col-sm-9'> <input type="text" id="message" class="form-control"/></div>
|
||||
<div class='col-sm-3'>
|
||||
<input type="button" id="sendmessage" value="@SR["Send"]" class="btn btn-default"/>
|
||||
</div></div></div>
|
||||
</div>
|
||||
@if (ViewBag.IsAuthenticated) {
|
||||
<div id="sendpvbox">
|
||||
<div class="col-md-10">
|
||||
<div class="row">
|
||||
<div class='col-sm-9'>
|
||||
<input type="text" id="pv" class="form-control" />
|
||||
</div>
|
||||
<div class='col-sm-3'>
|
||||
<button type="submit" id="sendpv" class="btn btn-default">@SR["Send a private message"] @SR["to"]
|
||||
<div id="sendpvdest" ></div> </button>
|
||||
</div></div></div>
|
||||
</div>
|
||||
}
|
||||
<input type="hidden" id="mySignalRConnectionIdHidden" value="" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section scripts {
|
||||
<!--Reference the autogenerated SignalR hub script. -->
|
||||
<script src="~/api/signalr/hubs"></script>
|
||||
<!--SignalR script to update the chat page and send messages.-->
|
||||
|
||||
|
||||
@if (!ViewBag.IsAuthenticated) { // Get the user name and store it to prepend to messages.
|
||||
<script>
|
||||
$('#displayname').val(prompt('Entrez votre nom:', ''));
|
||||
</script>
|
||||
}
|
||||
<script src="~/js/chat.js"></script>
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue