Skip to content
View in the app

A better way to browse. Learn more.

MagicDuel Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

"Trading logs" page

Featured Replies

Simple improvement for "Trading logs" page .

It extends the trading log and allows you to properly read it. It has the capability to "properly" extend.
 

Spoiler

 

1. Add "myClick" event for each table row (I am lazy as it should be added just for some cells ... you will see)


<tr id="tr_1" name="tr_1" class="wrap displayTransfer " onclick="myClick(this)">

 

2. Add one more column for each row


<tr id="tr_1" name="tr_1" class="wrap" onclick="myClick(this)">
    <td>No one</td>
    <td>none </td>
    <td>133875</td>
    <td>Rainbow candy</td>
    <td>29704</td>
        <td onmouseover="Tip('<b><font color=#772222>Item Transfer Log</font></b><br />created by No one on 15/02/17<br>', WIDTH, 340, FADEIN, '300', DELAY, 10 ,BGCOLOR,'#FFCC00', FONTFACE, 'Arial, Helvetica, sans-serif', FONTSIZE, '8pt',JUMPHORZ,'false',JUMPVERT,'true',OPACITY,80)" onmouseout="UnTip()" bgcolor="#FCE074" align="center">0</td>
        <td>15/02/17 09:04:07</td>
  <!-- this is the content from the Tip() function ... from here -->
  <td><div style="max-height: 200px;width: 400px; overflow: auto; display: none"><b><font color="#772222">Item Transfer Log</font></b><br>created by No one on 15/02/17<br></div></td>
  <!-- this is the content from the Tip() function ... untill here-->
</tr>

3. Add script at the end of page to support the feature


<script type="text/javascript">function changeClass(obj){if ( obj.className.indexOf(' displayTransfer ')>=0 ){obj.className = obj.className.replace( ' displayTransfer ', '' );}else obj.className += ' displayTransfer ';}function myClick(str) {var TRs=str.getElementsByTagName('td');var aObj = TRs[TRs.length-1].getElementsByTagName('div')[0]; aObj.style.display = (aObj.style.display == '') ? 'none' : ''; aObj.scrollTop = aObj.scrollHeight; changeClass(str);}</script>

 

 

 

 

 

Edited by No one

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Forum Statistics

  • Total Topics 17.5k
  • Total Posts 182.2k

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.